Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.28MB] [CPU: ▲331.08ms] 75% from 4 tests
A check of server-side resources used by Force Refresh
It is recommended to improve the following
- Extra CPU: The extra CPU usage should be kept under 200.00ms (currently 331.08ms on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.73 ▲0.27 | 42.38 ▲0.68 |
Dashboard /wp-admin | 3.60 ▲0.26 | 495.87 ▲434.13 |
Posts /wp-admin/edit.php | 3.65 ▲0.29 | 519.15 ▲471.45 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.34 | 527.13 ▲433.12 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 489.35 ▲456.37 |
Server storage [IO: ▲0.83MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 59 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Force Refresh
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,902 ▲166 | 15.50 ▲1.36 | 12.70 ▲10.87 | 45.26 ▲0.51 |
Dashboard /wp-admin | 2,245 ▲65 | 6.36 ▲0.70 | 133.73 ▲32.85 | 45.91 ▲2.98 |
Posts /wp-admin/edit.php | 2,156 ▲56 | 3.53 ▲1.60 | 60.45 ▲23.31 | 40.96 ▲4.69 |
Add New Post /wp-admin/post-new.php | 6,280 ▲4,754 | 27.37 ▲4.44 | 853.14 ▲169.09 | 51.14 ▼0.30 |
Media Library /wp-admin/upload.php | 1,453 ▲50 | 6.00 ▲1.70 | 129.31 ▲29.50 | 47.94 ▲4.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
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
The smoke test was a success, however most plugin functionality was not tested
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
- 27× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'JordanLeven\\Plugins\\ForceRefresh\\Api\\Api_Handler_Admin' not found in wp-content/plugins/force-refresh/includes/api/classes/class-api-handler-admin-refresh-site.php:17
- > PHP Fatal error
Uncaught Error: Class 'JordanLeven\\Plugins\\ForceRefresh\\Api\\Api_Handler_Admin' not found in wp-content/plugins/force-refresh/includes/api/classes/class-api-handler-admin-options.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function JordanLeven\\Plugins\\ForceRefresh\\add_action() in wp-content/plugins/force-refresh/includes/actions/admin/inc.refresh-ui-meta-box.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function JordanLeven\\Plugins\\ForceRefresh\\add_action() in wp-content/plugins/force-refresh/includes/actions/admin/inc.refresh-ui.php:125
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/force-refresh/includes/actions/admin/inc.troubleshooting.php on line 11
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/force-refresh/includes/actions/admin/inc.release-notes.php on line 10
- > PHP Warning
require_once(ABSPATHwp-admin/includes/plugin-install.php): failed to open stream: No such file or directory in wp-content/plugins/force-refresh/includes/actions/admin/inc.troubleshooting.php on line 11
- > PHP Fatal error
Uncaught Error: Call to undefined function JordanLeven\\Plugins\\ForceRefresh\\add_action() in wp-content/plugins/force-refresh/includes/actions/admin/inc.refresh-ui.php:125
- > PHP Fatal error
Uncaught Error: Call to undefined function JordanLeven\\Plugins\\ForceRefresh\\add_action() in wp-content/plugins/force-refresh/includes/actions/admin/inc.roles.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function JordanLeven\\Plugins\\ForceRefresh\\Api\\add_action() in wp-content/plugins/force-refresh/includes/api/register-endpoints.php:36
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
3 plugin tags: refresh, single page application, reload
force-refresh/filter-force-refresh.php 92% from 13 tests
The main PHP script in "Force Refresh" version 2.9.2 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("force-refresh.php" instead of "filter-force-refresh.php")
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
No dangerous file extensions were detected1,449 lines of code in 43 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 40 | 375 | 1,148 | 1,442 |
JSON | 1 | 0 | 0 | 5 |
JavaScript | 2 | 0 | 2 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 6.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 8 | |
Interfaces | 2 | |
Traits | 0 | |
Classes | 16 | |
▷ Abstract classes | 3 | 18.75% |
▷ Concrete classes | 13 | 81.25% |
▷ Final classes | 0 | 0.00% |
Methods | 83 | |
▷ Static methods | 42 | 50.60% |
▷ Public methods | 77 | 92.77% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 7.23% |
Functions | 32 | |
▷ Named functions | 25 | 78.12% |
▷ Anonymous functions | 7 | 21.88% |
Constants | 36 | |
▷ Global constants | 15 | 41.67% |
▷ Class constants | 21 | 58.33% |
▷ Public constants | 21 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin