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
Install script ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼3.21ms] Passed 4 tests
Server-side resources used by Fixed Menu Anchor
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 44.38 ▲9.06 |
Dashboard /wp-admin | 3.56 ▲0.21 | 47.10 ▼12.68 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 50.11 ▲1.43 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.19 | 84.12 ▼5.10 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 35.80 ▲3.50 |
Fixed Menu Anchor /wp-admin/themes.php?page=fixedMenuAnchor | 3.69 | 32.77 |
Server storage [IO: ▲1.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 292 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Fixed Menu Anchor
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,903 ▲142 | 13.38 ▼0.91 | 9.08 ▲7.40 | 43.31 ▲1.90 |
Dashboard /wp-admin | 2,201 ▲21 | 5.64 ▼0.01 | 90.31 ▲2.60 | 40.82 ▲4.69 |
Posts /wp-admin/edit.php | 2,109 ▲9 | 1.97 ▼0.01 | 38.57 ▲1.47 | 35.10 ▲0.77 |
Add New Post /wp-admin/post-new.php | 1,542 ▲14 | 18.13 ▼5.02 | 617.22 ▼46.25 | 66.04 ▲8.37 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.15 ▼0.05 | 98.44 ▼11.71 | 41.20 ▼1.11 |
Fixed Menu Anchor /wp-admin/themes.php?page=fixedMenuAnchor | 1,001 | 2.12 | 23.88 | 48.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/themes.php?page=fixedMenuAnchor
- > User deprecated in wp-content/plugins/fixed-menu-anchor/vendor/twig/twig/lib/Twig/Autoloader.php+12
The Twig_Autoloader class is deprecated since version 1.21 and will be removed in 2.0. Use Composer instead.
- > GET request to /wp-admin/themes.php?page=fixedMenuAnchor
- > User deprecated in wp-content/plugins/fixed-menu-anchor/vendor/twig/twig/lib/Twig/Autoloader.php+30
Using Twig_Autoloader is deprecated since version 1.21. Use Composer instead.
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 213× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Test' not found in wp-content/plugins/fixed-menu-anchor/vendor/twig/twig/lib/Twig/Node/Expression/Test/Divisibleby.php:21
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Filter' not found in wp-content/plugins/fixed-menu-anchor/vendor/twig/twig/lib/Twig/Node/Expression/Filter/Default.php:21
- > PHP Fatal error
Uncaught Error: Class 'Twig_TokenParser' not found in wp-content/plugins/fixed-menu-anchor/vendor/twig/twig/lib/Twig/TokenParser/For.php:24
- > PHP Fatal error
Uncaught Error: Class 'Hamcrest\\BaseMatcher' not found in wp-content/plugins/fixed-menu-anchor/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Core/IsNull.php:13
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Unary' not found in wp-content/plugins/fixed-menu-anchor/vendor/twig/twig/lib/Twig/Node/Expression/Unary/Neg.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Test' not found in wp-content/plugins/fixed-menu-anchor/vendor/twig/twig/lib/Twig/Node/Expression/Test/Odd.php:21
- > PHP Fatal error
Uncaught Error: Class 'Twig_Node_Expression_Binary' not found in wp-content/plugins/fixed-menu-anchor/vendor/twig/twig/lib/Twig/Node/Expression/Binary/Mul.php:12
- > PHP Fatal error
Uncaught Error: Class 'Twig_BaseNodeVisitor' not found in wp-content/plugins/fixed-menu-anchor/vendor/twig/twig/lib/Twig/NodeVisitor/Sandbox.php:17
- > PHP Fatal error
Uncaught Error: Class 'Hamcrest\\TypeSafeMatcher' not found in wp-content/plugins/fixed-menu-anchor/vendor/hamcrest/hamcrest-php/hamcrest/Hamcrest/Number/OrderingComparison.php:11
- > PHP Fatal error
Uncaught Error: Interface 'Twig_TemplateInterface' not found in wp-content/plugins/fixed-menu-anchor/vendor/twig/twig/lib/Twig/Template.php:18
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== fixed-menu-anchor ===
)
fixed-menu-anchor/fixed-menu-anchor.php 92% from 13 tests
The entry point to "Fixed Menu Anchor" version 2.3 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 183 characters long)
Code Analysis Passed 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
No dangerous file extensions were detected14,981 lines of code in 284 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 273 | 3,171 | 7,662 | 13,925 |
SVG | 3 | 3 | 3 | 455 |
JSON | 2 | 0 | 0 | 189 |
JavaScript | 3 | 33 | 121 | 183 |
HTML | 1 | 38 | 0 | 169 |
CSS | 1 | 3 | 0 | 41 |
XML | 1 | 0 | 0 | 19 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 6.45 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 122.00 |
Average method complexity | 2.17 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 25 | |
Traits | 0 | |
Classes | 240 | |
▷ Abstract classes | 21 | 8.75% |
▷ Concrete classes | 219 | 91.25% |
▷ Final classes | 0 | 0.00% |
Methods | 1,313 | |
▷ Static methods | 161 | 12.26% |
▷ Public methods | 1,122 | 85.45% |
▷ Protected methods | 163 | 12.41% |
▷ Private methods | 28 | 2.13% |
Functions | 138 | |
▷ Named functions | 131 | 94.93% |
▷ Anonymous functions | 7 | 5.07% |
Constants | 54 | |
▷ Global constants | 2 | 3.70% |
▷ Class constants | 52 | 96.30% |
▷ Public constants | 52 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/ignore-click-event.png | 17.39KB | 7.79KB | ▼ 55.23% |
img/laptop.png | 13.80KB | 7.09KB | ▼ 48.63% |
img/phone.png | 10.56KB | 4.69KB | ▼ 55.55% |