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
Installer ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼2.01ms] Passed 4 tests
Server-side resources used by Mobile Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.25 | 48.83 ▲4.09 |
Dashboard /wp-admin | 3.55 ▲0.24 | 50.40 ▼0.93 |
Posts /wp-admin/edit.php | 3.60 ▲0.24 | 51.68 ▼1.19 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.18 | 98.36 ▼2.97 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 37.05 ▼2.95 |
WP Mobile /wp-admin/options-general.php?page=wp-mobile-settings | 3.41 | 36.40 |
Server storage [IO: ▲0.86MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 131 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
wpmp_settings |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
wpmp_theme_settings |
wp-mobile-activation-notice |
Browser metrics Passed 4 tests
Checking browser requirements for Mobile Plugin
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲94 | 13.30 ▼1.05 | 1.69 ▼0.24 | 36.31 ▼5.32 |
Dashboard /wp-admin | 2,222 ▲40 | 4.82 ▼1.06 | 111.73 ▲5.67 | 41.34 ▼4.40 |
Posts /wp-admin/edit.php | 2,111 ▲22 | 2.00 ▲0.01 | 43.34 ▼0.08 | 44.07 ▲5.41 |
Add New Post /wp-admin/post-new.php | 1,389 ▼144 | 17.22 ▼6.03 | 577.97 ▼60.91 | 39.71 ▼9.45 |
Media Library /wp-admin/upload.php | 1,404 ▲13 | 4.16 ▼0.06 | 99.07 ▼2.43 | 40.19 ▼8.04 |
WP Mobile /wp-admin/options-general.php?page=wp-mobile-settings | 1,028 | 1.90 | 28.72 | 51.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 9 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- wp-mobile-activation-notice
- wpmp_theme_settings
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- wpmp_settings
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 fix the following
- 37× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function wpex_hook_content_before() in wp-content/plugins/rocket-wp-mobile/views/thoughts/content-page.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/rocket-wp-mobile/views/thoughts/404.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/rocket-wp-mobile/views/thoughts/index.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/rocket-wp-mobile/wp-mobile.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/rocket-wp-mobile/views/thoughts/image.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/rocket-wp-mobile/config.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/rocket-wp-mobile/views/thoughts/functions/scripts.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_template_directory_uri() in wp-content/plugins/rocket-wp-mobile/views/thoughts/functions.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function wpex_hook_content_before() in wp-content/plugins/rocket-wp-mobile/views/thoughts/content-gallery.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/rocket-wp-mobile/views/thoughts/single.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
rocket-wp-mobile/wp-mobile.php 92% from 13 tests
Analyzing the main PHP file in "Mobile Plugin" version 0.4.2
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("rocket-wp-mobile.php" instead of "wp-mobile.php")
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
Success! There were no dangerous files found in this plugin7,087 lines of code in 67 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 47 | 1,228 | 1,605 | 3,291 |
CSS | 7 | 315 | 159 | 2,250 |
JavaScript | 11 | 167 | 222 | 1,059 |
SVG | 1 | 0 | 0 | 255 |
PO File | 1 | 96 | 114 | 232 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 46.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 108.00 |
Average method complexity | 4.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 58.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 117 | |
▷ Static methods | 1 | 0.85% |
▷ Public methods | 107 | 91.45% |
▷ Protected methods | 6 | 5.13% |
▷ Private methods | 4 | 3.42% |
Functions | 56 | |
▷ Named functions | 56 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 18 | |
▷ Global constants | 17 | 94.44% |
▷ Class constants | 1 | 5.56% |
▷ Public constants | 1 | 100.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
39 PNG files occupy 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
views/thoughts/images/prettyPhoto/dark_square/btnPrevious.png | 1.41KB | 1.19KB | ▼ 15.74% |
views/thoughts/images/prettyPhoto/default/sprite_y.png | 1.13KB | 0.13KB | ▼ 88.81% |
views/thoughts/images/audioplayer/mute-on.png | 3.03KB | 0.50KB | ▼ 83.57% |
views/thoughts/images/prettyPhoto/dark_square/contentPattern.png | 0.12KB | 0.09KB | ▼ 20.66% |
views/thoughts/images/prettyPhoto/light_square/sprite.png | 3.42KB | 2.13KB | ▼ 37.67% |