84% erocket

Code Review | eRocket

WordPress plugin eRocket scored84%from 54 tests.

About plugin

  • Plugin page: erocket
  • Plugin version: 1.2.5
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.2
  • WordPress version: 6.3.1
  • First release: Apr 15, 2020
  • Latest release: May 11, 2023
  • Number of updates: 15
  • Update frequency: every 74.7 days
  • Top authors: rilwis (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /9,707 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.25MB] [CPU: ▲2.20ms] Passed 4 tests

This is a short check of server-side resources used by eRocket
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.70 ▲0.2440.85 ▼0.96
Dashboard /wp-admin3.60 ▲0.3057.69 ▲5.57
Posts /wp-admin/edit.php3.65 ▲0.2951.92 ▲3.88
Add New Post /wp-admin/post-new.php6.12 ▲0.23100.56 ▲5.23
Media Library /wp-admin/upload.php3.46 ▲0.2339.58 ▲0.66
eRocket /wp-admin/options-general.php?page=erocket3.4334.62

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 9 new options
New WordPress options
widget_recent-posts
widget_esm
theysaidso_admin_options
widget_theysaidso_widget
widget_eci
widget_erp
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for eRocket
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.70 ▼0.491.69 ▼0.1942.79 ▼7.61
Dashboard /wp-admin2,210 ▲284.90 ▲0.06109.04 ▲1.8942.54 ▲3.45
Posts /wp-admin/edit.php2,090 ▲12.04 ▼0.0139.24 ▲1.1835.83 ▼0.13
Add New Post /wp-admin/post-new.php1,545 ▲1023.43 ▲0.05657.45 ▼37.0051.99 ▼15.07
Media Library /wp-admin/upload.php1,383 ▼54.24 ▲0.0195.66 ▼17.8845.87 ▼4.60
eRocket /wp-admin/options-general.php?page=erocket9542.0224.8129.72

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 9 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_erp
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_eci
    • widget_esm
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting 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
The following issues need your attention
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget_Text' not found in wp-content/plugins/erocket/src/Widgets/ContactInfo.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function ERocket\\add_action() in wp-content/plugins/erocket/src/Loader.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/erocket/src/Widgets/SocialMedia.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/erocket/src/Widgets/RecentPosts.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: theme, widgets, themes, templates, template...

erocket/erocket.php 92% from 13 tests

This is the main PHP file of "eRocket" version 1.2.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,258 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP162394331,250
JSON1005
SVG3003

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity15.40
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.91
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods73
▷ Static methods1926.03%
▷ Public methods6690.41%
▷ Protected methods00.00%
▷ Private methods79.59%
Functions4
▷ Named functions00.00%
▷ Anonymous functions4100.00%
Constants1
▷ Global constants1100.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
PNG images were not found in this plugin