Benchmarks
Plugin footprint 81% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲9.69MB] [CPU: ▲44.76ms] 25% from 4 tests
This is a short check of server-side resources used by AMP
Please fix the following
- RAM: The total memory usage must be kept under 10MB (currently 13.42MB on /wp-admin/edit-tags.php?taxonomy=amp_validation_error&post_type=amp_validated_url)
- CPU: Total CPU usage must kept under 500.00ms (currently 645.90ms on /wp-admin/options.php?page=amp-onboarding-wizard)
- Extra RAM: The extra memory usage must be under 5MB (currently 9.69MB on /wp-admin/edit-tags.php?taxonomy=amp_validation_error&post_type=amp_validated_url)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 13.23 ▲9.77 | 87.44 ▲46.40 |
Dashboard /wp-admin | 13.41 ▲10.11 | 92.03 ▲44.35 |
Posts /wp-admin/edit.php | 13.41 ▲10.06 | 99.99 ▲53.03 |
Add New Post /wp-admin/post-new.php | 14.69 ▲8.80 | 125.90 ▲35.24 |
Media Library /wp-admin/upload.php | 13.41 ▲10.18 | 86.63 ▲56.17 |
AMP Onboarding Wizard /wp-admin/options.php?page=amp-onboarding-wizard | 15.42 | 645.90 |
Settings /wp-admin/admin.php?page=amp-options | 15.38 | 360.22 |
Support /wp-admin/admin.php?page=amp-support | 14.15 | 87.52 |
Validated URLs /wp-admin/edit.php?post_type=amp_validated_url | 17.41 | 97.12 |
Error Index /wp-admin/edit-tags.php?taxonomy=amp_validation_error&post_type=amp_validated_url | 13.42 | 81.66 |
Server storage [IO: ▲9.10MB] [DB: ▲1.37MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 1,564 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
amp_url_validation_queue |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by AMP
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,936 ▲149 | 14.38 ▲0.04 | 2.73 ▲0.62 | 36.69 ▼6.75 |
Dashboard /wp-admin | 2,308 ▲131 | 5.64 ▼0.01 | 95.81 ▼6.09 | 45.56 ▼0.69 |
Posts /wp-admin/edit.php | 2,197 ▲97 | 2.06 ▲0.05 | 41.46 ▲5.78 | 34.36 ▲0.81 |
Add New Post /wp-admin/post-new.php | 1,596 ▲70 | 23.23 ▲0.20 | 776.43 ▲1.19 | 48.41 ▼11.01 |
Media Library /wp-admin/upload.php | 1,479 ▲79 | 4.29 ▲0.15 | 101.92 ▼3.78 | 48.82 ▲5.52 |
AMP Onboarding Wizard /wp-admin/options.php?page=amp-onboarding-wizard | 424 | 3.22 | 67.39 | 56.80 |
Settings /wp-admin/admin.php?page=amp-options | 1,308 | 7.24 | 147.36 | 47.91 |
Support /wp-admin/admin.php?page=amp-support | 1,051 | 2.41 | 52.26 | 33.94 |
Validated URLs /wp-admin/edit.php?post_type=amp_validated_url | 1,785 | 2.23 | 37.42 | 30.19 |
Analytics /wp-admin/admin.php?page=amp-options#analytics-options | 1,339 | 7.40 | 136.45 | 42.10 |
Error Index /wp-admin/edit-tags.php?taxonomy=amp_validation_error&post_type=amp_validated_url | 1,309 | 1.95 | 35.89 | 31.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
The following issues need your attention
- 1244× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Sabberworm\\CSS\\Parsing\\SourceException' not found in wp-content/plugins/amp/vendor/sabberworm/php-css-parser/src/Parsing/OutputException.php:8
- > PHP Fatal error
Uncaught Error: Interface 'AmpProject\\Optimizer\\Transformer' not found in wp-content/plugins/amp/vendor/ampproject/amp-toolbox/src/Optimizer/Transformer/ReorderHead.php:46
- > PHP Fatal error
Uncaught Error: Interface 'AmpProject\\Exception\\AmpException' not found in wp-content/plugins/amp/vendor/ampproject/amp-toolbox/src/Optimizer/Exception/AmpOptimizerException.php:12
- > PHP Fatal error
Uncaught Error: Class 'AmpProject\\Validator\\Spec\\Tag' not found in wp-content/plugins/amp/vendor/ampproject/amp-toolbox/src/Validator/Spec/Tag/AmpNextPageSeparator.php:29
- > PHP Fatal error
Uncaught Error: Class 'AmpProject\\Validator\\Spec\\Tag' not found in wp-content/plugins/amp/vendor/ampproject/amp-toolbox/src/Validator/Spec/Tag/Dd.php:24
- > PHP Fatal error
Uncaught Error: Class 'AmpProject\\AmpWP\\BackgroundTask\\CronBasedBackgroundTask' not found in wp-content/plugins/amp/src/BackgroundTask/SingleScheduledBackgroundTask.php:17
- > PHP Fatal error
Uncaught Error: Class 'AmpProject\\Cli\\Command' not found in wp-content/plugins/amp/vendor/ampproject/amp-toolbox/src/Cli/Command/Optimize.php:16
- > PHP Fatal error
Uncaught Error: Class 'AmpProject\\Validator\\Spec\\Tag' not found in wp-content/plugins/amp/vendor/ampproject/amp-toolbox/src/Validator/Spec/Tag/StyleAmpRuntimeTransformed.php:35
- > PHP Fatal error
Uncaught Error: Class 'AmpProject\\Validator\\Spec\\TagWithExtensionSpec' not found in wp-content/plugins/amp/vendor/ampproject/amp-toolbox/src/Validator/Spec/Tag/ScriptAmpPositionObserver.php:28
- > PHP Fatal error
Uncaught Error: Class 'AmpProject\\Validator\\Spec\\Tag' not found in wp-content/plugins/amp/vendor/ampproject/amp-toolbox/src/Validator/Spec/Tag/AmpStoryInteractiveResults.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
6 plugin tags: amp, page experience, accelerated mobile pages, performance, optimization...
amp/amp.php 92% from 13 tests
This is the main PHP file of "AMP" version 2.5.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 347 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin122,946 lines of code in 1,542 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1,453 | 16,639 | 63,020 | 122,429 |
JSON | 1 | 0 | 0 | 263 |
JavaScript | 30 | 0 | 6 | 110 |
SVG | 17 | 0 | 0 | 100 |
CSS | 41 | 0 | 1 | 44 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 6.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 491.00 |
Average method complexity | 3.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 59.00 |
Code structure | ||
---|---|---|
Namespaces | 61 | |
Interfaces | 58 | |
Traits | 4 | |
Classes | 1,320 | |
▷ Abstract classes | 27 | 2.05% |
▷ Concrete classes | 1,293 | 97.95% |
▷ Final classes | 1,156 | 89.40% |
Methods | 2,775 | |
▷ Static methods | 606 | 21.84% |
▷ Public methods | 2,105 | 75.86% |
▷ Protected methods | 193 | 6.95% |
▷ Private methods | 477 | 17.19% |
Functions | 320 | |
▷ Named functions | 92 | 28.75% |
▷ Anonymous functions | 228 | 71.25% |
Constants | 5,242 | |
▷ Global constants | 4 | 0.08% |
▷ Class constants | 5,238 | 99.92% |
▷ Public constants | 5,238 | 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
2 compressed PNG files occupy 0.03MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/placeholder-icon.png | 0.24KB | 0.24KB | 0.00% |
assets/images/amp-page-fallback-wordpress-publisher-logo.png | 27.72KB | 28.53KB | 0.00% |