Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
It is recommended to fix the following installer errors
- The plugin did not install without errors
- > Notice in wp-content/plugins/amp-by-zaenu/index.php+16
Constant EP_PERMALINK already defined
Server metrics [RAM: ▼1.96MB] [CPU: ▼49.60ms] Passed 4 tests
This is a short check of server-side resources used by AMP by Zaenu
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 5.72 ▼32.14 |
Dashboard /wp-admin | 2.05 ▼1.25 | 5.59 ▼38.06 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.52 ▼41.15 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.22 ▼87.04 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.00 ▼29.26 |
AMP by Zaenu /wp-admin/options-general.php?page=amp_by_zaenu_setting | 2.05 | 4.98 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] 67% from 3 tests
Analyzing filesystem and database footprints of this plugin
These are issues you should consider
- There were 1 file (26.08KB) illegally modified outside of "wp-content/plugins/amp-by-zaenu/" and "wp-content/uploads/"
- (new file) wp-content/themes/twentytwentyone/amp-single.php
Filesystem: 6 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_theysaidso_widget |
zaenu_adsenseid |
zaenu_logo |
zaenu_analytics |
zaenu_icon |
zaenu_adsenseslot |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
AMP by Zaenu: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,970 ▲224 | 14.75 ▲0.38 | 1.92 ▲0.13 | 40.04 ▼8.85 |
Dashboard /wp-admin | 2,351 ▲160 | 6.50 ▲1.60 | 116.01 ▲17.44 | 37.96 ▼3.26 |
Posts /wp-admin/edit.php | 2,260 ▲171 | 3.42 ▲1.42 | 54.02 ▲15.40 | 35.41 ▲0.31 |
Add New Post /wp-admin/post-new.php | 1,521 ▼21 | 17.62 ▼0.50 | 644.47 ▼5.35 | 36.26 ▼15.29 |
Media Library /wp-admin/upload.php | 1,396 ▲5 | 4.14 ▼0.06 | 82.01 ▼13.38 | 44.14 ▼2.00 |
AMP by Zaenu /wp-admin/options-general.php?page=amp_by_zaenu_setting | 1,039 | 3.06 | 38.29 | 55.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/amp-by-zaenu/index.php+16
Constant EP_PERMALINK already defined
- This plugin does not fully uninstall, leaving 11 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- zaenu_adsenseid
- zaenu_logo
- zaenu_adsenseslot
- widget_recent-posts
- db_upgraded
- zaenu_analytics
- zaenu_icon
- widget_recent-comments
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=amp_by_zaenu_setting
- > Notice in wp-content/plugins/amp-by-zaenu/index.php+16
Constant EP_PERMALINK already defined
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=amp_by_zaenu_setting
- > User deprecated in wp-includes/functions.php+5737
Function has_cap was called with an argument that is deprecated since version 2.0.0! Usage of user levels is deprecated. Use capabilities instead.
- > GET request to /wp-admin/options-general.php?page=amp_by_zaenu_setting
- > Notice in wp-content/plugins/amp-by-zaenu/index.php+175
Undefined index: zaenu_submit
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
Please fix the following items
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/amp-by-zaenu/index.php:15
- > PHP Notice
Undefined variable: fixreplace1 in wp-content/plugins/amp-by-zaenu/amp-single.php on line 1169
- > PHP Notice
Undefined variable: fixreplace2 in wp-content/plugins/amp-by-zaenu/amp-single.php on line 1170
- > PHP Notice
Undefined variable: fixreplace4 in wp-content/plugins/amp-by-zaenu/amp-single.php on line 1170
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
4 plugin tags: customize, google, seo, amp
amp-by-zaenu/index.php 92% from 13 tests
The principal PHP file in "AMP by Zaenu" v. 1.2.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("amp-by-zaenu.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected2,239 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 377 | 115 | 2,175 |
JavaScript | 2 | 10 | 14 | 64 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 4.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 4.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 3 | |
▷ Static methods | 2 | 66.67% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin