74% amuga-ajax-log

Code Review | Amuga Ajax Log

WordPress plugin Amuga Ajax Log scored74%from 54 tests.

About plugin

  • Plugin page: amuga-ajax-log
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-5.5.1
  • WordPress version: 6.3.1
  • First release: Sep 22, 2020
  • Latest release: Sep 23, 2020
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: Asheboro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /895 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼8.28ms] Passed 4 tests

Server-side resources used by Amuga Ajax Log
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2337.01 ▼4.45
Dashboard /wp-admin3.43 ▲0.0949.26 ▼14.32
Posts /wp-admin/edit.php3.55 ▲0.1951.32 ▲4.37
Add New Post /wp-admin/post-new.php6.01 ▲0.1283.58 ▼18.72
Media Library /wp-admin/upload.php3.36 ▲0.1238.18 ▲5.87
Settings /wp-admin/admin.php?page=amuga_ajax_log_settings3.3031.52
Amuga Ajax Log /wp-admin/admin.php?page=amuga_ajax_log3.3233.52

Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 10 new files
Database: 1 new table, 7 new options
New tables
wp_amuga_ajax_log
New WordPress options
widget_recent-comments
amuga_al_db_version
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options

Browser metrics Passed 4 tests

Amuga Ajax Log: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.20 ▼1.111.62 ▼0.1340.06 ▼5.19
Dashboard /wp-admin2,228 ▲405.76 ▼0.1399.99 ▼8.7940.13 ▼2.65
Posts /wp-admin/edit.php2,114 ▲252.04 ▲0.0539.00 ▼4.2634.54 ▼2.82
Add New Post /wp-admin/post-new.php1,549 ▲323.20 ▲5.05692.77 ▲78.9152.78 ▲2.09
Media Library /wp-admin/upload.php1,416 ▲254.21 ▼0.0494.17 ▼5.6642.57 ▼2.37
Settings /wp-admin/admin.php?page=amuga_ajax_log_settings8872.2224.0928.24
Amuga Ajax Log /wp-admin/admin.php?page=amuga_ajax_log1,0392.0224.1829.08

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
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_amuga_ajax_log
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • amuga_al_db_version
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=amuga_ajax_log_settings
    • > Notice in wp-content/plugins/amuga-ajax-log/classes/Amuga_AL_Settings.php+260
    Trying to access array offset on value of type bool

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Please fix this invalid URI: "paypal.me/davepinson"
  • Screenshots: These screenshots lack descriptions #1, #2, #3 in amuga-ajax-log/assets to your readme.txt
The official readme.txt might help

amuga-ajax-log/amuga-ajax-log.php Passed 13 tests

The principal PHP file in "Amuga Ajax Log" v. 1.0 is loaded by WordPress automatically on each request
48 characters long description:
Log admin-ajax hits for troubleshooting purposes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin729 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP7192472661
CSS114668

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity14.00
▷ Minimum class complexity3.00
▷ Maximum class complexity22.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods26
▷ Static methods934.62%
▷ Public methods2596.15%
▷ Protected methods00.00%
▷ Private methods13.85%
Functions9
▷ Named functions888.89%
▷ Anonymous functions111.11%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin