87% wp-auto-reload-widgets

Code Review | WP Auto Reload Widgets

WordPress plugin WP Auto Reload Widgets scored 87% from 54 tests.

About plugin

  • Plugin page: wp-auto-reload-wi...
  • Plugin version: 10.0.5
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Oct 3, 2014
  • Latest release: Jun 12, 2019
  • Number of updates: 18
  • Update frequency: every 95.3 days
  • Top authors: Axepro (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

200+ active / 3,833 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

Server metrics [RAM: ▲0.49MB] [CPU: ▼140.70ms] Passed 4 tests

This is a short check of server-side resources used by WP Auto Reload Widgets
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.32 ▲0.6049.69 ▲24.42
Dashboard /wp-admin3.58 ▲0.5257.92 ▲1.78
Posts /wp-admin/edit.php3.63 ▲0.5259.31 ▼0.37
Add New Post /wp-admin/post-new.php5.87 ▲0.44101.49 ▼578.64
Media Library /wp-admin/upload.php3.46 ▲0.4654.51 ▲14.42
Auto Reload Widget Settings /wp-admin/options-general.php?page=options-general.php_auto_reload_widget_settings3.4237.12

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 63 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

WP Auto Reload Widgets: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,708 ▲11216.22 ▲0.4813.56 ▼0.6850.04 ▲0.59
Dashboard /wp-admin2,972 ▲415.88 ▼0.26166.42 ▼9.94123.20 ▼2.23
Posts /wp-admin/edit.php2,744 ▲52.72 ▼0.0074.67 ▼5.2993.70 ▼3.74
Add New Post /wp-admin/post-new.php1,584 ▼9917.20 ▲0.99514.99 ▲74.62134.20 ▲12.07
Media Library /wp-admin/upload.php1,812 ▲55.03 ▲0.00196.15 ▲33.09136.71 ▲3.23
Auto Reload Widget Settings /wp-admin/options-general.php?page=options-general.php_auto_reload_widget_settings1,3022.6269.47101.22

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=options-general.php_auto_reload_widget_settings
    • > Warning in wp-content/plugins/wp-auto-reload-widgets/admin-page-class/admin-page-class.php+1398
    count(): Parameter must be an array or an object that implements Countable

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wp-auto-reload-widgets/Wp-auto-reload-widget.php

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 86% from 29 tests

readme.txt 81% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots require images: #1 (Screenshot of Widget settings ( Step 1 )), #2 (Auto Reload Wigets settings ( Step 2 ))
  • Tested up to: Invalid plugin version format
  • Requires at least: Invalid plugin version format
The official readme.txt is a good inspiration

wp-auto-reload-widgets/Wp-auto-reload-widget.php 92% from 13 tests

This is the main PHP file of "WP Auto Reload Widgets" version 10.0.5, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-auto-reload-widgets.php" instead of "Wp-auto-reload-widget.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
There were no executable files found in this plugin12,215 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript139499697,600
PHP33591,3702,019
CSS93042391,937
PO File4276352659

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity193.00
▷ Minimum class complexity7.00
▷ Maximum class complexity379.00
Average method complexity3.89
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods133
▷ Static methods00.00%
▷ Public methods13097.74%
▷ Protected methods00.00%
▷ Private methods32.26%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
24 PNG files occupy 0.13MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin-page-class/images/add.png1.84KB1.49KB▼ 19.11%
admin-page-class/css/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
admin-page-class/css/images/ui-icons_2e83ff_256x240.png4.27KB4.11KB▼ 3.78%
admin-page-class/css/images/ui-bg_flat_0_aaaaaa_40x100.png0.18KB0.08KB▼ 51.67%
admin-page-class/images/edit.png1.54KB1.38KB▼ 10.34%