10% amigo-performance

Code Review | Amigo Performance

WordPress plugin Amigo Performance scored 10% from 54 tests.

About plugin

  • Plugin page: amigo-performance
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.0.3
  • WordPress version: 6.3.1
  • First release: Jul 22, 2020
  • Latest release: Mar 21, 2023
  • Number of updates: 18
  • Update frequency: every 54.1 days
  • Top authors: amigodheena (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 690 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.436.15 ▼34.81
Dashboard /wp-admin2.05 ▼1.268.37 ▼41.05
Posts /wp-admin/edit.php2.05 ▼1.318.65 ▼34.83
Add New Post /wp-admin/post-new.php2.05 ▼3.847.29 ▼96.03
Media Library /wp-admin/upload.php2.05 ▼1.188.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,820 ▲6314.42 ▼0.251.83 ▼0.2847.56 ▲3.57
Dashboard /wp-admin2,226 ▲355.78 ▲0.88105.05 ▼5.5943.75 ▲1.60
Posts /wp-admin/edit.php2,109 ▲202.01 ▲0.0039.69 ▲1.1737.98 ▲6.29
Add New Post /wp-admin/post-new.php1,531 ▲1223.10 ▼0.14649.65 ▲7.8256.47 ▼1.74
Media Library /wp-admin/upload.php1,408 ▲204.19 ▲0.0295.71 ▼7.7042.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

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: You can look at the official 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:
LanguageFilesBlank linesComment linesLines of code
PHP47645461
CSS1416249
JavaScript110035

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 code0.26
Average class complexity39.00
▷ Minimum class complexity39.00
▷ Maximum class complexity39.00
Average method complexity2.03
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods35
▷ Static methods00.00%
▷ Public methods35100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
assets/screenshot-2.PNG30.81KB13.85KB▼ 55.05%
assets/screenshot-3.PNG44.14KB19.69KB▼ 55.40%
assets/screenshot-1.png19.88KB9.85KB▼ 50.46%