84% ajax-loader-cache

Code Review | Ajax loader + Cache

WordPress plugin Ajax loader + Cache scored84%from 54 tests.

About plugin

  • Plugin page: ajax-loader-cache
  • Plugin version: 1.3.85
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 11, 2023
  • Latest release: Nov 17, 2023
  • Number of updates: 19
  • Update frequency: every 13.4 days
  • Top authors: mdesignfa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /1,363 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.00MB] [CPU: ▼5.44ms] Passed 4 tests

Analyzing server-side resources used by Ajax loader + Cache
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.37 ▼0.92
Dashboard /wp-admin3.32 ▼0.0342.68 ▼13.87
Posts /wp-admin/edit.php3.37 ▲0.0143.80 ▲0.47
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.08 ▼2.77
Media Library /wp-admin/upload.php3.24 ▲0.0131.25 ▼4.19
Ajax Loader /wp-admin/tools.php?page=wp-js-loader-bymdz3.5651.03

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 27 new files
Database: no new tables, 8 new options
New WordPress options
db_upgraded
theysaidso_admin_options
wpjsloadbymdz_empty_onDeactivate
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts
wpjsloadbymdz_redirect_onActivate
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Ajax loader + Cache
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,794 ▲2214.27 ▼0.071.83 ▲0.0244.72 ▲4.59
Dashboard /wp-admin2,199 ▲185.60 ▼0.1291.20 ▼11.0442.35 ▲3.45
Posts /wp-admin/edit.php2,104 ▲12.03 ▲0.0539.73 ▲0.4735.63 ▼0.93
Add New Post /wp-admin/post-new.php1,529 ▲323.52 ▲0.24634.76 ▼142.6557.48 ▲5.01
Media Library /wp-admin/upload.php1,404 ▲44.23 ▲0.0493.66 ▼15.8440.37 ▼4.70
Ajax Loader /wp-admin/tools.php?page=wp-js-loader-bymdz1,7582.0625.3878.03

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • wpjsloadbymdz_empty_onDeactivate
    • widget_theysaidso_widget
    • wpjsloadbymdz_redirect_onActivate
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
  • 4× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/ajax-loader-cache/ajax-loader-bymdez.php
    • > /wp-content/plugins/ajax-loader-cache/admin/admin-ajax.php
    • > /wp-content/plugins/ajax-loader-cache/admin/settings-pagehtml.php
    • > /wp-content/plugins/ajax-loader-cache/admin/class-admin.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
1 plugin tags: website full ajax load cache

ajax-loader-cache/ajax-loader-bymdez.php 85% from 13 tests

The primary PHP file in "Ajax loader + Cache" version 1.3.85 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("ajax-loader-cache.php" instead of "ajax-loader-bymdez.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
Everything looks great! No dangerous files found in this plugin2,062 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP429259781
PO File1150174515
JavaScript317827399
CSS1784350
SVG10017

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.18
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.40
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.19MB with 0.10MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/assets/help/plg-12.png8.91KB4.55KB▼ 48.94%
admin/assets/help/plg-6.png17.58KB9.84KB▼ 44.00%
admin/assets/help/plg-4.png42.53KB11.84KB▼ 72.17%
admin/assets/help/plg-8.png9.18KB5.51KB▼ 39.94%
admin/assets/help/plg-3.png19.48KB6.06KB▼ 68.90%