Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼8.86ms] Passed 4 tests
An overview of server-side resources used by AMP+ Plus=== AMP+ Plus ===
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 41.53 ▼3.87 |
Dashboard /wp-admin | 3.36 ▲0.05 | 49.04 ▼6.73 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 47.86 ▼3.24 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 83.99 ▼21.03 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.36 ▼3.79 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Please fix the following
- There were 1 file (0.06KB) illegally modified outside of "wp-content/plugins/amp-plus/" and "wp-content/uploads/"
- (new file) ads.txt
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for AMP+ Plus=== AMP+ Plus ===
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.20 ▼0.17 | 1.88 ▼0.05 | 44.83 ▲1.54 |
Dashboard /wp-admin | 2,198 ▲24 | 5.62 ▼0.04 | 85.20 ▼4.86 | 40.58 ▼0.65 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 2.04 ▲0.08 | 40.76 ▼2.38 | 39.63 ▲3.87 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 22.91 ▼0.17 | 643.06 ▼52.78 | 52.24 ▼11.78 |
Media Library /wp-admin/upload.php | 1,391 ▼9 | 4.17 ▲0.03 | 100.90 ▼14.10 | 45.54 ▼0.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/amp-plus/amp-plus.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: Please a description for screenshot #8 in amp-plus/assets to your readme.txt
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== AMP+ Plus=== AMP+ Plus ======
) - Tags: There are too many tags (12 tag instead of maximum 10)
amp-plus/amp-plus.php 92% from 13 tests
The primary PHP file in "AMP+ Plus=== AMP+ Plus ===" version 3.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 394 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin416 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 241 | 125 | 416 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
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 | 12 | |
▷ Named functions | 12 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin