83% mapplanner

Code Review | Mapplanner

WordPress plugin Mapplanner scored83%from 54 tests.

About plugin

  • Plugin page: mapplanner
  • Plugin version: 1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-5.5
  • WordPress version: 6.3.1
  • First release: Sep 10, 2020
  • Latest release: Sep 10, 2020
  • Number of updates: 7
  • Update frequency: every 1.9 days
  • Top authors: mapplanner (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /490 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼7.27ms] Passed 4 tests

This is a short check of server-side resources used by Mapplanner
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.10 ▼0.57
Dashboard /wp-admin3.31 ▲0.0144.69 ▼1.96
Posts /wp-admin/edit.php3.36 ▲0.0042.94 ▼3.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0080.09 ▼23.26
Media Library /wp-admin/upload.php3.24 ▲0.0035.76 ▲0.01

Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Mapplanner
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.19 ▼1.121.80 ▲0.0943.43 ▼3.32
Dashboard /wp-admin2,206 ▲155.91 ▲0.85100.60 ▼5.7338.24 ▼4.88
Posts /wp-admin/edit.php2,089 ▲31.97 ▼0.0234.83 ▼2.7234.48 ▼5.98
Add New Post /wp-admin/post-new.php1,542 ▼018.45 ▲0.31658.22 ▲23.7759.10 ▼2.08
Media Library /wp-admin/upload.php1,385 ▼34.42 ▲0.3096.31 ▼5.7640.35 ▼2.42

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/mapplanner/plugin/shortcode.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/mapplanner/plugin/shortcode.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: interactive maps, plan, blueprints, interactive blueprints, map

mapplanner/mapplanner.php 77% from 13 tests

The main PHP script in "Mapplanner" version 1.0 is automatically included on every request by WordPress
The following require your attention:
  • Requires at least: Required version must match the one declared in readme.txt ("4.1" instead of "5.2")
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Requires PHP: Required version must match the one declared in readme.txt ("5.0.0" instead of "7.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected24 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2101724

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin