Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼290.20ms] Passed 4 tests
This is a short check of server-side resources used by AMP Footer Widgets
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.06 | 53.74 ▲4.87 |
Dashboard /wp-admin | 3.46 ▲0.06 | 32.65 ▼3.21 |
Posts /wp-admin/edit.php | 3.70 ▲0.06 | 36.88 ▲1.03 |
Add New Post /wp-admin/post-new.php | 6.93 ▼0.04 | 93.34 ▼1,157.78 |
Media Library /wp-admin/upload.php | 3.35 ▲0.05 | 25.71 ▼0.84 |
Widgets /wp-admin/widgets.php | 5.28 | 56.34 |
Menus /wp-admin/nav-menus.php | 3.72 | 31.91 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for AMP Footer Widgets
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,825 ▲81 | 15.81 ▲0.20 | 5.71 ▼1.35 | 1.99 ▼0.07 |
Dashboard /wp-admin | 2,922 ▲64 | 5.98 ▼0.14 | 112.71 ▼18.17 | 172.08 ▲14.34 |
Posts /wp-admin/edit.php | 2,718 ▲30 | 3.23 ▼0.01 | 63.02 ▼1.17 | 138.34 ▼2.89 |
Add New Post /wp-admin/post-new.php | 1,773 ▲62 | 20.98 ▼0.30 | 406.22 ▼42.07 | 159.35 ▼3.10 |
Media Library /wp-admin/upload.php | 1,734 ▲36 | 5.60 ▲0.08 | 119.47 ▼30.45 | 196.70 ▲7.04 |
Widgets /wp-admin/widgets.php | 2,597 | 29.87 | 573.26 | 202.39 |
Menus /wp-admin/nav-menus.php | 2,265 | 3.44 | 79.84 | 124.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
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 no errors were found, this is by no means an exhaustive test
SRP 50% 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
Please fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/amp-footer-widgets/amp-footer-widgets.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: A description for screenshot #3 is required in amp-footer-widgets/assets to your readme.txt
amp-footer-widgets/amp-footer-widgets.php 92% from 13 tests
The primary PHP file in "AMP Footer Widgets" version 1.0.6.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 198 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin425 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 279 | 20 | 425 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 1.46KB | 1.36KB | ▼ 7.22% |