84% roadmap

Code Review | Roadmap

WordPress plugin Roadmap scored84%from 54 tests.

About plugin

  • Plugin page: roadmap
  • Plugin version: 1.0.9
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.1
  • WordPress version: 6.3.1
  • First release: Jan 16, 2020
  • Latest release: Oct 29, 2022
  • Number of updates: 13
  • Update frequency: every 78.2 days
  • Top authors: roadmapspace (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /2,399 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.42ms] Passed 4 tests

This is a short check of server-side resources used by Roadmap
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0538.83 ▼2.05
Dashboard /wp-admin3.36 ▲0.0653.96 ▲0.01
Posts /wp-admin/edit.php3.47 ▲0.1249.47 ▼0.30
Add New Post /wp-admin/post-new.php5.94 ▲0.0588.35 ▼15.33
Media Library /wp-admin/upload.php3.28 ▲0.0537.92 ▲4.90
Roadmap /wp-admin/options-general.php?page=roadmap-space3.2633.08

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

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 8 new options
New WordPress options
widget_theysaidso_widget
roadmap-space_feedback_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
db_upgraded
roadmap-space_roadmap_id

Browser metrics Passed 4 tests

A check of browser resources used by Roadmap
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲714.35 ▲0.161.77 ▼0.4344.49 ▼2.25
Dashboard /wp-admin2,202 ▲255.57 ▲0.0184.98 ▼16.3840.17 ▼4.07
Posts /wp-admin/edit.php2,101 ▲12.00 ▲0.0334.13 ▼1.5636.48 ▼0.44
Add New Post /wp-admin/post-new.php1,529 ▼823.10 ▲4.62662.86 ▲26.2450.64 ▼32.73
Media Library /wp-admin/upload.php1,401 ▲14.12 ▼0.0696.36 ▼6.3942.58 ▼4.56
Roadmap /wp-admin/options-general.php?page=roadmap-space8612.2826.9234.63

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 8 options
    • db_upgraded
    • theysaidso_admin_options
    • roadmap-space_roadmap_id
    • widget_recent-comments
    • roadmap-space_feedback_widget
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/roadmap/admin/partials/roadmap-space-admin-display.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% 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
7 plugin tags: product management, customer feedback, roadmap, feedback, suggestions...

roadmap/roadmap.php 92% from 13 tests

"Roadmap" version 1.0.9's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, 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
Everything looks great! No dangerous files found in this plugin255 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP9110401255

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity3.20
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.42
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods2180.77%
▷ Protected methods00.00%
▷ Private methods519.23%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin