Benchmarks
Plugin footprint 65% 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.68MB] [CPU: ▼35.74ms] Passed 4 tests
A check of server-side resources used by WP Mega
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 45.43 ▲7.20 |
Dashboard /wp-admin | 3.27 ▼0.04 | 26.91 ▼25.79 |
Posts /wp-admin/edit.php | 3.27 ▼0.09 | 25.06 ▼26.30 |
Add New Post /wp-admin/post-new.php | 3.27 ▼2.62 | 26.45 ▼77.68 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 24.81 ▼13.17 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by WP Mega
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,889 ▲128 | 14.38 ▲0.00 | 2.22 ▲0.49 | 42.03 ▲1.32 |
Dashboard /wp-admin | 2,228 ▲51 | 5.56 ▲0.03 | 86.40 ▼6.62 | 37.63 ▼4.23 |
Posts /wp-admin/edit.php | 2,180 ▲80 | 2.02 ▲0.00 | 45.65 ▲6.11 | 37.56 ▼1.39 |
Add New Post /wp-admin/post-new.php | 1,553 ▲27 | 23.15 ▼0.35 | 674.02 ▲60.05 | 58.85 ▲5.92 |
Media Library /wp-admin/upload.php | 1,427 ▲24 | 4.23 ▲0.06 | 102.50 ▲1.20 | 45.79 ▲1.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Notice in wp-content/plugins/wp-mega/inc/class/class-wp-mega-dashboard-access.php+15
Undefined index: HTTP_X_REQUESTED_WITH
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Mega' not found in wp-content/plugins/wp-mega/inc/class/class-wp-mega-reveal-id.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Mega' not found in wp-content/plugins/wp-mega/inc/class/class-wp-mega-remove-filter.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Mega' not found in wp-content/plugins/wp-mega/inc/class/class-wp-mega-views-counter.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Mega' not found in wp-content/plugins/wp-mega/inc/class/class-wp-mega-admin-bar.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Mega' not found in wp-content/plugins/wp-mega/inc/class/class-wp-mega-dashboard-access.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-mega/inc/class/class-wp-mega-spca.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-mega/inc/class/admin/class-codist-admin-panel.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-mega/inc/class/admin/class-wp-mega-admin-ajax.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_Mega' not found in wp-content/plugins/wp-mega/inc/class/class-wp-mega-log-redirect.php:4
- > PHP Fatal error
Uncaught Error: Class 'WP_Mega' not found in wp-content/plugins/wp-mega/inc/class/class-wp-mega-fb-comment.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: facebook comment, insert footer, admin bar, views counter, dashboard...
wp-mega/wp-mega.php 92% from 13 tests
This is the main PHP file of "WP Mega" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 358 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,162 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 109 | 19 | 1,162 |
PHP code Passed 2 tests
A short review 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.21 |
Average class complexity | 7.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 14 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 14 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 80 | |
▷ Static methods | 4 | 5.00% |
▷ Public methods | 80 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 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
8 PNG files occupy 0.40MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 89.83KB | 24.46KB | ▼ 72.77% |
assets/icon-256x256.png | 18.13KB | 11.45KB | ▼ 36.86% |
assets/banner-772x250.png | 74.38KB | 35.15KB | ▼ 52.74% |
assets/plugin-logo.png | 10.17KB | 6.46KB | ▼ 36.52% |
assets/img/plugin-logo.png | 10.17KB | 6.46KB | ▼ 36.52% |