Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.12MB] [CPU: ▼291.43ms] Passed 4 tests
A check of server-side resources used by DW Promobar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.12 | 58.61 ▲6.24 |
Dashboard /wp-admin | 3.56 ▲0.15 | 35.41 ▼1.59 |
Posts /wp-admin/edit.php | 3.78 ▲0.15 | 41.83 ▲3.96 |
Add New Post /wp-admin/post-new.php | 7.02 ▲0.05 | 95.56 ▼1,168.79 |
Media Library /wp-admin/upload.php | 3.44 ▲0.14 | 24.84 ▲0.69 |
DW PromoBar /wp-admin/options-general.php?page=dw_promobar | 4.39 | 37.63 |
Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for DW Promobar
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,886 ▲132 | 16.76 ▲1.09 | 8.83 ▲2.43 | 2.26 ▼0.78 |
Dashboard /wp-admin | 3,010 ▲149 | 7.21 ▲1.04 | 128.50 ▼5.50 | 153.52 ▼4.21 |
Posts /wp-admin/edit.php | 2,813 ▲125 | 3.81 ▲0.56 | 74.27 ▲10.16 | 155.26 ▲9.10 |
Add New Post /wp-admin/post-new.php | 1,773 ▲112 | 15.40 ▼1.43 | 406.17 ▲3.04 | 170.02 ▲19.15 |
Media Library /wp-admin/upload.php | 1,814 ▲116 | 6.39 ▲0.86 | 137.49 ▼3.84 | 185.75 ▲2.81 |
DW PromoBar /wp-admin/options-general.php?page=dw_promobar | 6,801 | 4.47 | 113.90 | 133.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=dw_promobar
- > Notice in wp-content/plugins/dw-promobar/dw-promobar-option.php+409
Undefined property: stdClass::$regular
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
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/dw-promobar/dw-promobar.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dw-promobar/dw-promobar-option.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
These attributes need your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Back-end settings), #2 (Front-end appearance)
dw-promobar/dw-promobar.php Passed 13 tests
The principal PHP file in "DW Promobar" v. 1.0.4 is loaded by WordPress automatically on each request
45 characters long description:
Custom promotion bar for your wordpress site.
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 detected2,134 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 5 | 111 | 113 | 903 |
PHP | 2 | 133 | 31 | 767 |
LESS | 2 | 52 | 0 | 254 |
CSS | 3 | 3 | 0 | 210 |
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.41 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.27MB with 0.18MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 124.51KB | 49.63KB | ▼ 60.14% |
screenshot-1.png | 154.79KB | 45.49KB | ▼ 70.61% |