Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.81MB] [CPU: ▼37.13ms] Passed 4 tests
An overview of server-side resources used by WP AMP Lite
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.38 ▲0.92 | 35.55 ▼5.67 |
Dashboard /wp-admin | 3.13 ▼0.17 | 19.79 ▼27.85 |
Posts /wp-admin/edit.php | 3.13 ▼0.22 | 18.32 ▼28.07 |
Add New Post /wp-admin/post-new.php | 3.13 ▼2.75 | 19.08 ▼74.73 |
Media Library /wp-admin/upload.php | 3.13 ▼0.10 | 18.62 ▼17.88 |
WP AMP /wp-admin/options-general.php?page=amphtml-options | 3.13 | 21.77 |
Server storage [IO: ▲0.91MB] [DB: ▲0.13MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 111 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
amphtml_version |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for WP AMP Lite
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,988 ▲253 | 15.29 ▲0.52 | 1.61 ▼0.26 | 36.85 ▼8.64 |
Dashboard /wp-admin | 2,396 ▲205 | 7.09 ▲1.19 | 144.77 ▲42.64 | 40.78 ▼3.33 |
Posts /wp-admin/edit.php | 2,302 ▲213 | 3.61 ▲1.60 | 55.25 ▲20.52 | 32.01 ▼4.79 |
Add New Post /wp-admin/post-new.php | 6,364 ▲4,831 | 20.04 ▼3.21 | 833.05 ▲155.80 | 35.20 ▼17.80 |
Media Library /wp-admin/upload.php | 1,441 ▲53 | 4.86 ▲0.64 | 85.72 ▼16.94 | 41.31 ▼3.37 |
WP AMP /wp-admin/options-general.php?page=amphtml-options | 1,478 | 3.96 | 69.03 | 30.52 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.13MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/wp-amp-lite/includes/tabs/class-amphtml-tab-general.php+60
Undefined variable: section
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=amphtml-options
- > Notice in wp-content/plugins/wp-amp-lite/includes/tabs/class-amphtml-tab-general.php+60
Undefined variable: section
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-amp-lite/templates/amp-boilerplate.php
- 58× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/wp-amp-lite/templates/parts/content_404.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wp-amp-lite/templates/base.php:10
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-amp-lite/templates/related-posts.php:5
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-amp-lite/templates/parts/wc_archives_image.php:1
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-amp-lite/templates/social-share.php:2
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-amp-lite/templates/parts/add_to_cart_block.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-amp-lite/templates/header.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function do_action() in wp-content/plugins/wp-amp-lite/templates/parts/post_content.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-amp-lite/templates/meta-author.php:9
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/wp-amp-lite/templates/parts/featured_image.php:3
- > 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 83% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Tags: There are too many tags (15 tag instead of maximum 10)
wp-amp-lite/wp-amp.php 69% from 13 tests
The entry point to "WP AMP Lite" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Domain Path: The domain path folder was not found ("/languages/")
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-amp-lite.php" instead of "wp-amp.php")
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.0" instead of "3.0.0")
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
No dangerous file extensions were detected17,681 lines of code in 99 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 85 | 1,542 | 926 | 10,088 |
CSS | 11 | 994 | 294 | 6,755 |
JavaScript | 3 | 112 | 65 | 838 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 51.75 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 249.00 |
Average method complexity | 3.45 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 72.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 24 | |
▷ Abstract classes | 1 | 4.17% |
▷ Concrete classes | 23 | 95.83% |
▷ Final classes | 0 | 0.00% |
Methods | 499 | |
▷ Static methods | 12 | 2.40% |
▷ Public methods | 460 | 92.18% |
▷ Protected methods | 25 | 5.01% |
▷ Private methods | 14 | 2.81% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 50 | |
▷ Global constants | 27 | 54.00% |
▷ Class constants | 23 | 46.00% |
▷ Public constants | 23 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/ic_close_black_18dp_2x.png | 0.20KB | 0.29KB | 0.00% |