WordPress plugin Project Map It scored 77% from 54 tests.

About plugin

  • Plugin page: interactive-map-s...
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.2
  • WordPress version: 5.9.2
  • First release: Nov 19, 2019
  • Latest release: Nov 19, 2019
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: petesaia (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 317 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.01MB] [CPU: ▼295.48ms] Passed 4 tests

This is a short check of server-side resources used by Project Map It
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0161.50 ▲5.54
Dashboard /wp-admin3.42 ▲0.0135.82 ▼1.58
Posts /wp-admin/edit.php3.66 ▲0.0138.72 ▼0.72
Add New Post /wp-admin/post-new.php6.89 ▼0.0898.74 ▼1,173.93
Media Library /wp-admin/upload.php3.31 ▲0.0125.79 ▼5.68
Map Settings /wp-admin/options-general.php?page=pmi3.2524.53

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 1 new option
New WordPress options
pmi_username

Browser metrics Passed 4 tests

A check of browser resources used by Project Map It
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,812 ▲5816.24 ▲0.255.95 ▼0.202.94 ▲0.28
Dashboard /wp-admin2,909 ▲226.32 ▼0.26141.49 ▼3.83168.41 ▲7.78
Posts /wp-admin/edit.php2,696 ▲83.43 ▲0.0062.56 ▲1.38139.82 ▼9.39
Add New Post /wp-admin/post-new.php1,664 ▼4716.90 ▼4.33417.88 ▼33.67148.57 ▼14.12
Media Library /wp-admin/upload.php1,703 ▲55.74 ▼0.00142.11 ▼4.87186.65 ▼5.02
Map Settings /wp-admin/options-general.php?page=pmi1,0582.5653.40124.17

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 1 option
    • pmi_username

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=pmi
    • > User deprecated in wp-includes/functions.php+5326
    screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=pmi
    • > User deprecated in wp-includes/functions.php+5326
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/interactive-map-shortcode-for-project-map-it/pmi.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Contributors: The plugin contributors field is not present
You can look at the official readme.txt

interactive-map-shortcode-for-project-map-it/pmi.php 77% from 13 tests

"Project Map It" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Description: The description should be shorter than 140 characters (currently 337 characters long)
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("interactive-map-shortcode-for-project-map-it.php" instead of "pmi.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected76 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2101454
Markdown111022

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.07
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin