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.22MB] [CPU: ▼3.19ms] Passed 4 tests
Server-side resources used by Grumft AMP Plugin
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.68 ▲0.22 | 46.11 ▼0.67 |
Dashboard /wp-admin | 3.52 ▲0.22 | 50.40 ▼2.97 |
Posts /wp-admin/edit.php | 3.64 ▲0.28 | 53.18 ▲2.31 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.22 | 98.34 ▼10.87 |
Media Library /wp-admin/upload.php | 3.44 ▲0.21 | 38.49 ▲1.77 |
Server storage [IO: ▲2.22MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 155 new files
Database: 3 new tables, 6 new options
New tables |
---|
grumft_amp_configs |
grumft_amp_style_settings |
grumft_amp_adtags |
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Grumft AMP Plugin: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲43 | 14.17 ▼0.24 | 1.62 ▼0.16 | 40.34 ▼7.31 |
Dashboard /wp-admin | 2,198 ▲21 | 5.77 ▲0.19 | 93.13 ▼10.33 | 76.54 ▲32.08 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 1.97 ▼0.09 | 38.98 ▲3.39 | 33.18 ▼0.95 |
Add New Post /wp-admin/post-new.php | 1,539 ▲4 | 23.75 ▲5.45 | 667.23 ▲19.25 | 61.97 ▼9.52 |
Media Library /wp-admin/upload.php | 1,418 ▲18 | 4.11 ▼0.08 | 111.63 ▲15.43 | 66.01 ▲25.35 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie tables detected upon uninstall: 3 tables
- grumft_amp_adtags
- grumft_amp_style_settings
- grumft_amp_configs
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/grumft-amp/templates/simple_blog/footer.php
- > /wp-content/plugins/grumft-amp/vendor/amp-converter-master/vendor/masterminds/html5/bin/entities.php
- > /wp-content/plugins/grumft-amp/templates/simple_blog/css/home.css.php
- > /wp-content/plugins/grumft-amp/vendor/disqus/disqus-amp.php
- 66× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Masterminds\\HTML5\\Tests\\TestCase' not found in wp-content/plugins/grumft-amp/vendor/amp-converter-master/vendor/masterminds/html5/test/HTML5/Parser/TreeBuildingRulesTest.php:17
- > PHP Fatal error
Uncaught Error: Class 'FastImageSize\\Type\\TypeBase' not found in wp-content/plugins/grumft-amp/vendor/amp-converter-master/vendor/marc1706/fast-image-size/lib/Type/TypeIff.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/grumft-amp/templates/simple_blog/head_end.php:11
- > PHP Fatal error
Uncaught Error: Interface 'magyarandras\\AMPConverter\\TagConverterInterface' not found in wp-content/plugins/grumft-amp/vendor/amp-converter-master/vendor/magyarandras/amp-converter/src/TagConverter/AMPImgZoom.php:7
- > PHP Fatal error
Uncaught Error: Class 'Masterminds\\HTML5\\Tests\\TestCase' not found in wp-content/plugins/grumft-amp/vendor/amp-converter-master/vendor/masterminds/html5/test/HTML5/ElementsTest.php:7
- > PHP Fatal error
Uncaught Error: Class 'Masterminds\\HTML5\\Tests\\TestCase' not found in wp-content/plugins/grumft-amp/vendor/amp-converter-master/vendor/masterminds/html5/test/HTML5/Serializer/TraverserTest.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Masterminds\\HTML5\\Parser\\EventHandler' not found in wp-content/plugins/grumft-amp/vendor/amp-converter-master/vendor/masterminds/html5/src/HTML5/Parser/DOMTreeBuilder.php:26
- > PHP Notice
Undefined variable: blog_name in wp-content/plugins/grumft-amp/templates/simple_blog/footer.php on line 11
- > PHP Fatal error
Uncaught Error: Interface 'magyarandras\\AMPConverter\\TagConverterInterface' not found in wp-content/plugins/grumft-amp/vendor/amp-converter-master/vendor/magyarandras/amp-converter/src/TagConverter/AMPGist.php:7
- > PHP Fatal error
Uncaught Error: Class 'Masterminds\\HTML5\\Tests\\TestCase' not found in wp-content/plugins/grumft-amp/vendor/amp-converter-master/vendor/masterminds/html5/test/HTML5/Serializer/OutputRulesTest.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
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
These attributes need to be fixed:
- Contributors: Plugin contributors not specified
grumft-amp/grumft-amp.php 92% from 13 tests
"Grumft AMP Plugin" version 5.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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 plugin21,380 lines of code in 131 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 98 | 2,454 | 3,335 | 13,623 |
HTML | 4 | 1,089 | 56 | 5,286 |
JavaScript | 1 | 329 | 161 | 1,365 |
Markdown | 7 | 202 | 0 | 504 |
JSON | 5 | 0 | 0 | 294 |
SVG | 11 | 5 | 5 | 200 |
YAML | 4 | 8 | 0 | 91 |
XML | 1 | 0 | 0 | 17 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 11.27 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 140.00 |
Average method complexity | 2.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 77.00 |
Code structure | ||
---|---|---|
Namespaces | 14 | |
Interfaces | 6 | |
Traits | 0 | |
Classes | 69 | |
▷ Abstract classes | 1 | 1.45% |
▷ Concrete classes | 68 | 98.55% |
▷ Final classes | 0 | 0.00% |
Methods | 531 | |
▷ Static methods | 28 | 5.27% |
▷ Public methods | 439 | 82.67% |
▷ Protected methods | 81 | 15.25% |
▷ Private methods | 11 | 2.07% |
Functions | 9 | |
▷ Named functions | 6 | 66.67% |
▷ Anonymous functions | 3 | 33.33% |
Constants | 116 | |
▷ Global constants | 1 | 0.86% |
▷ Class constants | 115 | 99.14% |
▷ Public constants | 115 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 compressed PNG files occupy 0.33MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
templates/simple_blog/img/blog/logo.png | 9.18KB | 9.46KB | 0.00% |
assets/images/amp-icon-menu-wp.png | 0.60KB | 0.69KB | 0.00% |
templates/simple_blog/img/blog/popular2.png | 120.27KB | 131.52KB | 0.00% |
templates/simple_blog/img/blog/want2.png | 80.43KB | 86.73KB | 0.00% |
templates/simple_blog/img/blog/want1.png | 70.80KB | 78.13KB | 0.00% |