Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.56MB] [CPU: ▲2.25ms] Passed 4 tests
A check of server-side resources used by MW WP Hacks
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.02 ▲0.56 | 54.28 ▲10.90 |
Dashboard /wp-admin | 3.89 ▲0.55 | 72.07 ▲1.83 |
Posts /wp-admin/edit.php | 3.95 ▲0.59 | 58.10 ▲6.90 |
Add New Post /wp-admin/post-new.php | 6.47 ▲0.59 | 101.19 ▼9.75 |
Media Library /wp-admin/upload.php | 3.80 ▲0.57 | 46.36 ▲10.02 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for MW WP Hacks
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,959 ▲198 | 14.34 ▼0.05 | 1.82 ▲0.21 | 42.48 ▼0.33 |
Dashboard /wp-admin | 2,355 ▲178 | 6.18 ▲0.49 | 122.91 ▲34.23 | 42.22 ▲4.79 |
Posts /wp-admin/edit.php | 2,283 ▲183 | 3.32 ▲1.33 | 48.06 ▲13.13 | 35.37 ▲0.91 |
Add New Post /wp-admin/post-new.php | 1,580 ▲54 | 23.16 ▼0.10 | 634.79 ▼56.30 | 40.95 ▼13.15 |
Media Library /wp-admin/upload.php | 1,426 ▲26 | 4.15 ▼0.07 | 86.45 ▼22.71 | 44.82 ▲2.75 |
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: 6 options
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
- 14× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'MW_WP_Hacks_Abstract_Setting' not found in wp-content/plugins/mw-wp-hacks/classes/class.setting-ogp.php:13
- > PHP Fatal error
Uncaught Error: Class 'MW_WP_Hacks_Abstract_Setting' not found in wp-content/plugins/mw-wp-hacks/classes/class.setting-description.php:13
- > PHP Fatal error
Uncaught Error: Class 'MW_WP_Hacks_Abstract_Setting' not found in wp-content/plugins/mw-wp-hacks/classes/class.setting-social.php:13
- > PHP Fatal error
Uncaught Error: Class 'MW_WP_Hacks_Abstract_Setting' not found in wp-content/plugins/mw-wp-hacks/classes/class.setting-cpt-archive-posts.php:13
- > PHP Fatal error
Uncaught Error: Class 'MW_WP_Hacks_Abstract_Setting' not found in wp-content/plugins/mw-wp-hacks/classes/class.setting-script.php:13
- > PHP Fatal error
Uncaught Error: Class 'MW_WP_Hacks_Abstract_Setting' not found in wp-content/plugins/mw-wp-hacks/classes/class.setting-thumbnail.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function register_uninstall_hook() in wp-content/plugins/mw-wp-hacks/mw-wp-hacks.php:32
- > PHP Fatal error
Uncaught Error: Class 'MW_WP_Hacks_Abstract_Setting' not found in wp-content/plugins/mw-wp-hacks/classes/class.setting-widget.php:13
- > PHP Fatal error
Uncaught Error: Class 'MW_WP_Hacks_Abstract_Setting' not found in wp-content/plugins/mw-wp-hacks/classes/class.setting-feed.php:13
- > PHP Fatal error
Uncaught Error: Class 'MW_WP_Hacks_Abstract_Setting' not found in wp-content/plugins/mw-wp-hacks/classes/class.setting-general.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== mw-wp-hacks ===
)
mw-wp-hacks/mw-wp-hacks.php Passed 13 tests
"MW WP Hacks" version 1.4.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
60 characters long description:
MW WP Hacks is plugin to help with development in WordPress.
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
Everything looks great! No dangerous files found in this plugin3,056 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 21 | 238 | 952 | 2,736 |
PO File | 1 | 64 | 68 | 159 |
JavaScript | 2 | 8 | 9 | 69 |
Sass | 1 | 5 | 0 | 53 |
CSS | 2 | 3 | 6 | 39 |
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.38 |
Average class complexity | 18.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 121.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 21 | |
▷ Abstract classes | 1 | 4.76% |
▷ Concrete classes | 20 | 95.24% |
▷ Final classes | 0 | 0.00% |
Methods | 160 | |
▷ Static methods | 8 | 5.00% |
▷ Public methods | 96 | 60.00% |
▷ Protected methods | 57 | 35.62% |
▷ Private methods | 7 | 4.38% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 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
There are no PNG files in this plugin