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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 40.85 ▼0.96 |
Dashboard /wp-admin | 3.60 ▲0.30 | 57.69 ▲5.57 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 51.92 ▲3.88 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 100.56 ▲5.23 |
Media Library /wp-admin/upload.php | 3.46 ▲0.23 | 39.58 ▲0.66 |
eRocket /wp-admin/options-general.php?page=erocket | 3.43 | 34.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.70 ▼0.49 | 1.69 ▼0.19 | 42.79 ▼7.61 |
Dashboard /wp-admin | 2,210 ▲28 | 4.90 ▲0.06 | 109.04 ▲1.89 | 42.54 ▲3.45 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.04 ▼0.01 | 39.24 ▲1.18 | 35.83 ▼0.13 |
Add New Post /wp-admin/post-new.php | 1,545 ▲10 | 23.43 ▲0.05 | 657.45 ▼37.00 | 51.99 ▼15.07 |
Media Library /wp-admin/upload.php | 1,383 ▼5 | 4.24 ▲0.01 | 95.66 ▼17.88 | 45.87 ▼4.60 |
eRocket /wp-admin/options-general.php?page=erocket | 954 | 2.02 | 24.81 | 29.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 239 | 433 | 1,250 |
JSON | 1 | 0 | 0 | 5 |
SVG | 3 | 0 | 0 | 3 |
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 code | 0.32 |
Average class complexity | 15.40 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.91 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 73 | |
▷ Static methods | 19 | 26.03% |
▷ Public methods | 66 | 90.41% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 9.59% |
Functions | 4 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 4 | 100.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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