Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼4.32ms] Passed 4 tests
This is a short check of server-side resources used by PURGE BOX
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 46.41 ▲1.53 |
Dashboard /wp-admin | 3.38 ▲0.08 | 55.11 ▲0.35 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 52.35 ▼2.86 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 87.29 ▼13.84 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 39.04 ▼0.92 |
PurgeBox /wp-admin/options-general.php?page=redbox-wp-purge | 3.27 | 36.86 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
PURGE BOX: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲42 | 14.38 ▼0.28 | 1.70 ▼0.25 | 43.29 ▲0.47 |
Dashboard /wp-admin | 2,209 ▲32 | 5.52 ▼0.11 | 81.89 ▼18.24 | 38.47 ▼3.10 |
Posts /wp-admin/edit.php | 2,114 ▲14 | 2.00 ▼0.03 | 34.44 ▼3.88 | 33.71 ▼1.59 |
Add New Post /wp-admin/post-new.php | 1,542 ▲16 | 18.29 ▼4.86 | 629.75 ▼65.36 | 67.38 ▲5.41 |
Media Library /wp-admin/upload.php | 1,408 ▲8 | 4.23 ▲0.05 | 99.46 ▼1.29 | 48.83 ▲2.08 |
PurgeBox /wp-admin/options-general.php?page=redbox-wp-purge | 832 | 1.99 | 25.74 | 24.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/purgebox/classes/class-purgebox-plugin.php:39
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=redbox-wp-purge
- > Network (severe)
wp-content/plugins/purgebox/assets/css/purgebox.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (PURGE BOX) image required
- Donate link: Please fix this invalid url: "NONE"
purgebox/purgebox.php Passed 13 tests
The main file in "PURGE BOX" v. 1.6 serves as a complement to information provided in readme.txt and as the entry point to the plugin
24 characters long description:
REDBOX CDN Purge Plugin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin402 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 71 | 274 | 365 |
Markdown | 1 | 16 | 0 | 34 |
CSS | 1 | 0 | 5 | 3 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 13.25 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 2.29 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 4 | 10.53% |
▷ Public methods | 27 | 71.05% |
▷ Protected methods | 11 | 28.95% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 1 | 25.00% |
▷ Class constants | 3 | 75.00% |
▷ Public constants | 3 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin