Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.25MB] [CPU: ▼1.49ms] Passed 4 tests
Analyzing server-side resources used by WP Simple Menu Icons
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 40.89 ▼5.83 |
Dashboard /wp-admin | 3.59 ▲0.28 | 46.39 ▼5.69 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 48.82 ▼0.31 |
Add New Post /wp-admin/post-new.php | 6.11 ▲0.22 | 96.37 ▲8.24 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 40.97 ▲5.88 |
Server storage [IO: ▲3.36MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 69 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by WP Simple Menu Icons
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.35 ▼1.29 | 4.41 ▲2.59 | 36.87 ▼9.97 |
Dashboard /wp-admin | 2,209 ▲21 | 4.86 ▼0.00 | 105.75 ▼11.07 | 39.14 ▼5.26 |
Posts /wp-admin/edit.php | 2,086 ▼6 | 2.05 ▼0.00 | 34.24 ▼3.89 | 35.90 ▼0.40 |
Add New Post /wp-admin/post-new.php | 1,542 ▲28 | 18.42 ▲0.91 | 626.82 ▼64.76 | 72.46 ▲10.34 |
Media Library /wp-admin/upload.php | 1,385 ▼3 | 4.22 ▲0.05 | 101.66 ▼5.29 | 42.37 ▼3.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
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 no errors were found, 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
Almost there! Just fix the following items
- 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Pressmodo\\Requirements\\Abstracts\\Checker' not found in wp-content/plugins/wp-simple-menu-icons/vendor/pressmodo/wp-requirements/src/Checker/Theme.php:21
- > PHP Fatal error
Uncaught Error: Class 'Pressmodo\\Requirements\\Abstracts\\Checker' not found in wp-content/plugins/wp-simple-menu-icons/vendor/pressmodo/wp-requirements/src/Checker/PHPExtensions.php:21
- > PHP Fatal error
Uncaught Error: Class 'Pressmodo\\Requirements\\Abstracts\\Checker' not found in wp-content/plugins/wp-simple-menu-icons/vendor/pressmodo/wp-requirements/src/Checker/WordPress.php:20
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Yaml\\Exception\\RuntimeException' not found in wp-content/plugins/wp-simple-menu-icons/vendor/symfony/yaml/Exception/ParseException.php:19
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Console\\Command\\Command' not found in wp-content/plugins/wp-simple-menu-icons/vendor/symfony/yaml/Command/LintCommand.php:32
- > PHP Fatal error
Uncaught Error: Interface 'Symfony\\Component\\Yaml\\Exception\\ExceptionInterface' not found in wp-content/plugins/wp-simple-menu-icons/vendor/symfony/yaml/Exception/RuntimeException.php:19
- > PHP Fatal error
Uncaught Error: Class 'Pressmodo\\Requirements\\Abstracts\\Checker' not found in wp-content/plugins/wp-simple-menu-icons/vendor/pressmodo/wp-requirements/src/Checker/PHP.php:21
- > PHP Fatal error
Uncaught Error: Class 'Symfony\\Component\\Yaml\\Exception\\RuntimeException' not found in wp-content/plugins/wp-simple-menu-icons/vendor/symfony/yaml/Exception/DumpException.php:19
- > PHP Fatal error
Uncaught Error: Interface 'Pressmodo\\Requirements\\Interfaces\\Checkable' not found in wp-content/plugins/wp-simple-menu-icons/vendor/pressmodo/wp-requirements/src/Abstracts/Checker.php:19
- > PHP Fatal error
Uncaught Error: Class 'Pressmodo\\Requirements\\Abstracts\\Checker' not found in wp-content/plugins/wp-simple-menu-icons/vendor/pressmodo/wp-requirements/src/Checker/Plugins.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: menu, pressmodo, fontawesome, sematico, icons
wp-simple-menu-icons/wp-simple-menu-icons.php Passed 13 tests
"WP Simple Menu Icons" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
50 characters long description:
An easy way to add icons to your navigation menus.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin35,294 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
YAML | 1 | 0 | 0 | 21,782 |
SVG | 3 | 0 | 0 | 9,546 |
PHP | 42 | 974 | 1,593 | 3,513 |
JSON | 1 | 0 | 0 | 449 |
CSS | 3 | 0 | 4 | 3 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
Analyzing cyclomatic complexity and code structure
Please fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 128)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.65 |
Average class complexity | 28.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 297.00 |
Average method complexity | 5.62 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 128.00 |
Code structure | ||
---|---|---|
Namespaces | 12 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 26 | |
▷ Abstract classes | 1 | 3.85% |
▷ Concrete classes | 25 | 96.15% |
▷ Final classes | 2 | 8.00% |
Methods | 174 | |
▷ Static methods | 55 | 31.61% |
▷ Public methods | 117 | 67.24% |
▷ Protected methods | 2 | 1.15% |
▷ Private methods | 55 | 31.61% |
Functions | 24 | |
▷ Named functions | 16 | 66.67% |
▷ Anonymous functions | 8 | 33.33% |
Constants | 23 | |
▷ Global constants | 6 | 26.09% |
▷ Class constants | 17 | 73.91% |
▷ Public constants | 17 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin