84% easy-auto-reload

Code Review | Easy Auto Reload - Auto Refresh

WordPress plugin Easy Auto Reload - Auto Refresh scored84%from 54 tests.

About plugin

  • Plugin page: easy-auto-reload
  • Plugin version: 1.0.7
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.4
  • WordPress version: 6.3.1
  • First release: Sep 6, 2021
  • Latest release: Nov 2, 2023
  • Number of updates: 21
  • Update frequency: every 37.5 days
  • Top authors: ivijanstefan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /9,488 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

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

Analyzing server-side resources used by Easy Auto Reload - Auto Refresh
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.64 ▲5.29
Dashboard /wp-admin3.32 ▼0.0247.42 ▼8.35
Posts /wp-admin/edit.php3.37 ▲0.0244.03 ▼9.70
Add New Post /wp-admin/post-new.php5.90 ▲0.0280.56 ▼5.46
Media Library /wp-admin/upload.php3.25 ▲0.0233.74 ▼14.02
Auto-Refresh /wp-admin/options-general.php?page=wp-autorefresh3.2129.61

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

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

Browser metrics Passed 4 tests

Easy Auto Reload - Auto Refresh: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.74 ▲0.381.90 ▲0.1346.86 ▲6.66
Dashboard /wp-admin2,199 ▲255.55 ▼0.2087.26 ▼6.6838.88 ▼1.16
Posts /wp-admin/edit.php2,104 ▲12.00 ▼0.0436.68 ▼6.0033.64 ▼3.37
Add New Post /wp-admin/post-new.php1,529 ▼223.51 ▲0.60692.89 ▲98.6854.66 ▲5.62
Media Library /wp-admin/upload.php1,401 ▲14.19 ▼0.0394.68 ▼16.2939.91 ▼2.35
Auto-Refresh /wp-admin/options-general.php?page=wp-autorefresh8302.0022.9529.81

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

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
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
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/easy-auto-reload/easy-auto-reload.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% 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: ""
The official readme.txt might help

easy-auto-reload/easy-auto-reload.php 92% from 13 tests

The primary PHP file in "Easy Auto Reload - Auto Refresh" version 1.0.7 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • 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

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin555 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP254108259
PO File35454238
JavaScript14058

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.59
Average class complexity40.00
▷ Minimum class complexity40.00
▷ Maximum class complexity40.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods15.56%
▷ Public methods1372.22%
▷ Protected methods00.00%
▷ Private methods527.78%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.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
No PNG files were detected