84% no-cache-ajax-widgets

Code Review | No Cache AJAX Widgets

WordPress plugin No Cache AJAX Widgets scored84%from 54 tests.

About plugin

  • Plugin page: no-cache-ajax-wid...
  • Plugin version: 1.0
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-6.3.1
  • WordPress version: 6.3.1
  • First release: Oct 10, 2015
  • Latest release: Sep 4, 2023
  • Number of updates: 13
  • Update frequency: every 223.0 days
  • Top authors: Magnigenie (53.85%)sagarseth9 (53.85%)

Code review

54 tests

User reviews

5 reviews

Install metrics

300+ active /4,951 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼8.24ms] Passed 4 tests

An overview of server-side resources used by No Cache AJAX Widgets
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0245.73 ▲6.16
Dashboard /wp-admin3.33 ▼0.0244.89 ▼15.48
Posts /wp-admin/edit.php3.38 ▲0.0242.90 ▼2.80
Add New Post /wp-admin/post-new.php5.91 ▲0.0282.46 ▼18.61
Media Library /wp-admin/upload.php3.25 ▲0.0236.53 ▲3.92

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_theysaidso_widget
widget_ajax_text

Browser metrics Passed 4 tests

No Cache AJAX Widgets: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,898 ▲13713.41 ▼1.169.50 ▲7.9444.11 ▲4.84
Dashboard /wp-admin2,192 ▲185.54 ▼0.0384.84 ▼3.5440.22 ▼2.49
Posts /wp-admin/edit.php2,097 ▼31.96 ▼0.0633.43 ▼4.0336.58 ▲2.16
Add New Post /wp-admin/post-new.php1,526 ▼223.60 ▲0.62637.71 ▼60.7349.62 ▼1.94
Media Library /wp-admin/upload.php1,397 ▼34.19 ▲0.00102.23 ▲1.1445.09 ▼0.47

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options detected upon uninstall: 7 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_ajax_text
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/no-cache-ajax-widgets/no-cache-ajax-widgets.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: ajax widgets, caching, cacheing, no cache widgets, no cache...

no-cache-ajax-widgets/no-cache-ajax-widgets.php 92% from 13 tests

The main file in "No Cache AJAX Widgets" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 162 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin84 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1181364
JavaScript12020

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity2.00
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 were not PNG files found in your plugin