Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.13MB] [CPU: ▲339.55ms] 75% from 4 tests
Server-side resources used by MP Easy Icons
The following require your attention
- Extra CPU: The extra CPU usage must be under 200.00ms (currently 339.55ms on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 43.67 ▼1.57 |
Dashboard /wp-admin | 3.49 ▲0.19 | 502.93 ▲449.86 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 492.99 ▲440.89 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.11 | 568.60 ▲469.03 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 523.77 ▲493.02 |
Server storage [IO: ▲1.40MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
MP Easy Icons: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲63 | 14.70 ▲0.39 | 1.74 ▼0.20 | 41.24 ▼5.27 |
Dashboard /wp-admin | 2,218 ▲41 | 5.64 ▲0.10 | 86.23 ▼14.48 | 42.39 ▼13.34 |
Posts /wp-admin/edit.php | 2,128 ▲28 | 2.01 ▲0.05 | 38.03 ▼5.67 | 39.26 ▲4.84 |
Add New Post /wp-admin/post-new.php | 1,548 ▲20 | 23.65 ▲0.50 | 694.84 ▲10.16 | 55.76 ▲9.69 |
Media Library /wp-admin/upload.php | 1,428 ▲31 | 4.22 ▼0.08 | 99.10 ▼2.46 | 42.52 ▼3.37 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Please take a closer look at the following
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mp-easy-icons/includes/misc-functions/enqueue-scripts.php:34
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mp-easy-icons/includes/plugin-checker/class-plugin-checker.php:862
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mp-easy-icons/includes/plugin-checker/included-plugins/mp-core-check.php:42
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/mp-easy-icons/mp-easy-icons.php:41
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/mp-easy-icons/includes/misc-functions/icon-creator.php:65
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: icons, tinymce
mp-easy-icons/mp-easy-icons.php 77% from 13 tests
"MP Easy Icons" version 1.0.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Domain Path: Please prefix the domain path with a forward slash character ("/languages")
- Text Domain: The text domain name should consist of only dashes and lowercase characters
- Domain Path: The domain path should use only dashes and lowercase characters ("languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
No dangerous file extensions were detected6,405 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 0 | 28 | 4,673 |
SVG | 2 | 0 | 0 | 1,054 |
PHP | 8 | 379 | 633 | 641 |
Markdown | 1 | 20 | 0 | 37 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 37.50 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 7.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.08MB with 0.04MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 83.60KB | 39.77KB | ▼ 52.43% |