Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.81ms] Passed 4 tests
Server-side resources used by Ampify
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 43.21 ▲5.66 |
Dashboard /wp-admin | 3.34 ▲0.03 | 45.38 ▼1.96 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 44.19 ▼0.96 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 88.62 ▼12.27 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.06 ▲3.96 |
Ampify /wp-admin/tools.php?page=ampify-io-amp | 3.22 | 31.53 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ampify
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 14.44 ▲0.14 | 2.02 ▲0.40 | 42.54 ▲0.18 |
Dashboard /wp-admin | 2,207 ▲19 | 4.85 ▼1.00 | 97.47 ▼4.02 | 39.37 ▼0.52 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.05 | 39.79 ▲1.55 | 34.78 ▼2.08 |
Add New Post /wp-admin/post-new.php | 1,545 ▲12 | 23.03 ▼0.12 | 637.57 ▼17.74 | 56.12 ▲3.73 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.20 ▼0.00 | 94.90 ▼0.13 | 42.02 ▲0.63 |
Ampify /wp-admin/tools.php?page=ampify-io-amp | 866 | 2.03 | 22.68 | 34.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however 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
Almost there! Just 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/ampify-io-amp/ampify.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: devtool, tool, amp
ampify-io-amp/ampify.php 92% from 13 tests
"Ampify" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("ampify-io-amp.php" instead of "ampify.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin202 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 52 | 9 | 202 |
PHP code Passed 2 tests
This is a very shot 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.33 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.83 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 92.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 7.69% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin