94% reload

Code Review | Reload

WordPress plugin Reload scored 94% from 54 tests.

About plugin

  • Plugin page: reload
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-3.8
  • WordPress version: 5.9.2
  • First release: Jan 14, 2014
  • Latest release: Jan 20, 2014
  • Number of updates: 13
  • Update frequency: every 0.4 days
  • Top authors: mbence (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 2,324 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

This is a short check of server-side resources used by Reload
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0657.44 ▲7.46
Dashboard /wp-admin3.44 ▲0.0433.57 ▲1.79
Posts /wp-admin/edit.php3.67 ▲0.0337.73 ▲1.18
Add New Post /wp-admin/post-new.php6.91 ▼0.0695.38 ▼1,226.19
Media Library /wp-admin/upload.php3.32 ▲0.0326.46 ▲4.01

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

This is an overview of browser requirements for Reload
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,802 ▲5815.88 ▼0.056.27 ▼1.392.29 ▲0.15
Dashboard /wp-admin2,892 ▲316.14 ▼0.04117.57 ▼15.93153.87 ▼11.59
Posts /wp-admin/edit.php2,691 ▲33.25 ▲0.0162.86 ▼1.65140.81 ▲2.48
Add New Post /wp-admin/post-new.php1,690 ▲2220.96 ▲1.35428.95 ▲42.12157.84 ▲3.34
Media Library /wp-admin/upload.php1,701 ▲35.46 ▼0.05141.61 ▲7.59183.52 ▼1.83

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled completely, with no zombie files or tables

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 errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/reload/reload.php:46

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 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
4 plugin tags: live, autorefresh, refresh, reload

reload/reload.php Passed 13 tests

The main PHP file in "Reload" ver. 1.1.3 adds more information about the plugin and also serves as the entry point for this plugin
55 characters long description:
Automatically refresh your browser if you update a post

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected285 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP241124180
JavaScript11919105

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity14.50
▷ Minimum class complexity4.00
▷ Maximum class complexity25.00
Average method complexity2.93
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods14
▷ Static methods00.00%
▷ Public methods750.00%
▷ Protected methods750.00%
▷ Private methods00.00%
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

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin