Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/amigo-performance/amigo-performance.php+292
Undefined index: css_hadle
Server metrics [RAM: ▼1.96MB] [CPU: ▼51.68ms] Passed 4 tests
An overview of server-side resources used by Amigo Performance
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 6.15 ▼34.81 |
Dashboard /wp-admin | 2.05 ▼1.26 | 8.37 ▼41.05 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 8.65 ▼34.83 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 7.29 ▼96.03 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 8.97 ▼25.62 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 10 new options
New WordPress options |
---|
amigoPerf_dq_style |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
amigoPerf_nq_script |
amigoPerf_nq_style |
amigoPerf_dq_script |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Amigo Performance
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲63 | 14.42 ▼0.25 | 1.83 ▼0.28 | 47.56 ▲3.57 |
Dashboard /wp-admin | 2,226 ▲35 | 5.78 ▲0.88 | 105.05 ▼5.59 | 43.75 ▲1.60 |
Posts /wp-admin/edit.php | 2,109 ▲20 | 2.01 ▲0.00 | 39.69 ▲1.17 | 37.98 ▲6.29 |
Add New Post /wp-admin/post-new.php | 1,531 ▲12 | 23.10 ▼0.14 | 649.65 ▲7.82 | 56.47 ▼1.74 |
Media Library /wp-admin/upload.php | 1,408 ▲20 | 4.19 ▲0.02 | 95.71 ▼7.70 | 42.58 ▼2.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/amigo-performance/amigo-performance.php+292
Undefined index: css_hadle
- This plugin does not fully uninstall, leaving 8 options in the database
- amigoPerf_dq_script
- theysaidso_admin_options
- amigoPerf_dq_style
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/amigo-performance/admin.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Screenshots: These screenshots need descriptions #2, #3 in amigo-performance/assets to your readme.txt
amigo-performance/amigo-performance.php Passed 13 tests
The principal PHP file in "Amigo Performance" v. 1.0 is loaded by WordPress automatically on each request
134 characters long description:
Amigo Performance is used to Optimize Website Performance and improve Site Score in services like Google Page Speed Insight, GTmetrix.
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
No dangerous file extensions were detected745 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 76 | 45 | 461 |
CSS | 1 | 41 | 6 | 249 |
JavaScript | 1 | 10 | 0 | 35 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 39.00 |
▷ Minimum class complexity | 39.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 2.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 35 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 35 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
3 PNG files occupy 0.09MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-2.PNG | 30.81KB | 13.85KB | ▼ 55.05% |
assets/screenshot-3.PNG | 44.14KB | 19.69KB | ▼ 55.40% |
assets/screenshot-1.png | 19.88KB | 9.85KB | ▼ 50.46% |