Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.20MB] [CPU: ▼141.26ms] Passed 4 tests
This is a short check of server-side resources used by Purgely
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.05 ▲0.33 | 44.91 ▲23.90 |
Dashboard /wp-admin | 3.35 ▲0.29 | 50.03 ▲1.56 |
Posts /wp-admin/edit.php | 3.17 ▲0.06 | 38.89 ▼7.72 |
Add New Post /wp-admin/post-new.php | 5.65 ▲0.22 | 105.97 ▼557.09 |
Media Library /wp-admin/upload.php | 3.23 ▲0.22 | 36.00 ▼1.79 |
Purgely /wp-admin/options-general.php?page=purgely | 3.20 | 34.60 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 18 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Purgely
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,708 ▲112 | 15.92 ▲0.32 | 9.83 ▲0.99 | 46.85 ▲1.29 |
Dashboard /wp-admin | 2,972 ▲41 | 5.94 ▼0.06 | 139.82 ▼7.47 | 107.90 ▲1.93 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.71 ▼0.02 | 94.33 ▲22.39 | 93.03 ▲1.84 |
Add New Post /wp-admin/post-new.php | 1,584 ▼99 | 20.67 ▲3.19 | 528.44 ▲148.19 | 114.93 ▲9.19 |
Media Library /wp-admin/upload.php | 1,815 ▲8 | 5.05 ▲0.05 | 149.27 ▼10.24 | 115.71 ▲1.80 |
Purgely /wp-admin/options-general.php?page=purgely | 1,277 | 2.09 | 59.10 | 106.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstaller ran successfully
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
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following
- 7× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'Purgely_Header' not found in wp-content/plugins/purgely/src/classes/header-surrogate-control.php:8
- > PHP Fatal error
Uncaught Error: Class 'Purgely_Header' not found in wp-content/plugins/purgely/src/classes/header-cache-control.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function untrailingslashit() in wp-content/plugins/purgely/purgely.php:111
- > PHP Fatal error
Uncaught Error: Class 'Purgely_Header' not found in wp-content/plugins/purgely/src/classes/header-surrogate-keys.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/purgely/src/wp-purges.php:34
- > PHP Fatal error
Uncaught Error: Class 'WP_CLI_Command' not found in wp-content/plugins/purgely/src/wp-cli.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/purgely/src/settings-page.php:38
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Tested up to: Version not formatted correctly
purgely/purgely.php Passed 13 tests
The main file in "Purgely" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
55 characters long description:
A plugin to manage Fastly caching behavior and purging.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,320 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 329 | 1,540 | 1,281 |
Markdown | 1 | 16 | 0 | 39 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 9.31 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 1.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 13 | |
▷ Abstract classes | 1 | 7.69% |
▷ Concrete classes | 12 | 92.31% |
▷ Final classes | 0 | 0.00% |
Methods | 127 | |
▷ Static methods | 7 | 5.51% |
▷ Public methods | 105 | 82.68% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 22 | 17.32% |
Functions | 15 | |
▷ Named functions | 15 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 10 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin