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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.06 | 57.44 ▲7.46 |
Dashboard /wp-admin | 3.44 ▲0.04 | 33.57 ▲1.79 |
Posts /wp-admin/edit.php | 3.67 ▲0.03 | 37.73 ▲1.18 |
Add New Post /wp-admin/post-new.php | 6.91 ▼0.06 | 95.38 ▼1,226.19 |
Media Library /wp-admin/upload.php | 3.32 ▲0.03 | 26.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,802 ▲58 | 15.88 ▼0.05 | 6.27 ▼1.39 | 2.29 ▲0.15 |
Dashboard /wp-admin | 2,892 ▲31 | 6.14 ▼0.04 | 117.57 ▼15.93 | 153.87 ▼11.59 |
Posts /wp-admin/edit.php | 2,691 ▲3 | 3.25 ▲0.01 | 62.86 ▼1.65 | 140.81 ▲2.48 |
Add New Post /wp-admin/post-new.php | 1,690 ▲22 | 20.96 ▲1.35 | 428.95 ▲42.12 | 157.84 ▲3.34 |
Media Library /wp-admin/upload.php | 1,701 ▲3 | 5.46 ▼0.05 | 141.61 ▲7.59 | 183.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
- > PHP Fatal error
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 41 | 124 | 180 |
JavaScript | 1 | 19 | 19 | 105 |
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 code | 0.45 |
Average class complexity | 14.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.93 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 14 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 50.00% |
▷ Protected methods | 7 | 50.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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