Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼18.50ms] Passed 4 tests
Server-side resources used by de:branding
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 39.59 ▼3.28 |
Dashboard /wp-admin | 3.39 ▲0.05 | 55.30 ▼7.95 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 51.28 ▲0.12 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 85.71 ▼62.88 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 45.09 ▲7.77 |
de:branding /wp-admin/themes.php?page=debranding | 3.39 | 33.58 |
Server storage [IO: ▲1.27MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 35 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
debrand_configured |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
de:branding: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,813 ▲67 | 14.36 ▼0.23 | 1.92 ▲0.23 | 43.96 ▲2.42 |
Dashboard /wp-admin | 2,222 ▲45 | 5.64 ▼0.01 | 96.67 ▲5.80 | 43.39 ▲2.95 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.00 ▲0.06 | 35.25 ▼6.83 | 33.03 ▼4.48 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 22.99 ▼0.37 | 671.38 ▲60.25 | 53.74 ▼2.65 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.23 ▲0.07 | 110.98 ▲7.08 | 40.45 ▼3.17 |
de:branding /wp-admin/themes.php?page=debranding | 1,732 | 3.45 | 65.95 | 92.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- debrand_configured
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These errors were triggered by the plugin
- > GET request to /wp-admin/themes.php?page=debranding
- > Notice in wp-content/plugins/debranding/classes/class-debrand-activation.php+85
Undefined index: nomin
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 take a closer look at the following
- 2× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/debranding/debranding.php on line 23
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/debranding/debranding.php:41
- > PHP Warning
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 uses markdown syntax to describe your plugin to the world
2 plugin tags: site skin advertising, debranding
debranding/debranding.php Passed 13 tests
"de:branding" version 1.0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
42 characters long description:
WordPress plugin for site skin advertising
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected1,825 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Sass | 7 | 120 | 31 | 697 |
PHP | 4 | 124 | 16 | 561 |
PO File | 2 | 171 | 220 | 350 |
JavaScript | 3 | 18 | 9 | 149 |
SVG | 3 | 0 | 2 | 50 |
JSON | 1 | 0 | 0 | 17 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
A short review 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.32 |
Average class complexity | 25.67 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 39.00 |
Average method complexity | 4.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 21 | |
▷ Static methods | 1 | 4.76% |
▷ Public methods | 21 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
8 PNG files occupy 1.17MB with 0.50MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 650.37KB | 115.33KB | ▼ 82.27% |
assets/img/menu_logo.png | 0.68KB | 0.35KB | ▼ 47.91% |
assets/img/deadblocker.png | 0.45KB | 0.27KB | ▼ 39.66% |
assets/img/decomments.png | 0.45KB | 0.27KB | ▼ 39.61% |
assets/img/mistape.png | 0.51KB | 0.49KB | ▼ 2.69% |