Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼3.43ms] Passed 4 tests
This is a short check of server-side resources used by SV Discount Progress Bar
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.22 ▼2.48 |
Dashboard /wp-admin | 3.31 ▲0.01 | 43.72 ▼2.79 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 44.26 ▼3.42 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.00 | 89.09 ▼2.00 |
Media Library /wp-admin/upload.php | 3.24 ▲0.00 | 32.32 ▼5.03 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for SV Discount Progress Bar
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲68 | 13.19 ▼1.56 | 1.56 ▼0.14 | 38.11 ▼2.12 |
Dashboard /wp-admin | 2,220 ▲35 | 5.77 ▲0.88 | 97.04 ▼6.01 | 38.91 ▼4.87 |
Posts /wp-admin/edit.php | 2,103 ▲14 | 2.06 ▲0.06 | 43.10 ▲6.91 | 37.20 ▲1.13 |
Add New Post /wp-admin/post-new.php | 1,523 ▼0 | 17.70 ▼5.57 | 650.72 ▲27.92 | 67.07 ▲14.59 |
Media Library /wp-admin/upload.php | 1,399 ▲8 | 4.24 ▲0.07 | 94.60 ▼0.64 | 42.83 ▲0.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
- 5× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'SV_Disper_Bar\\Main' not found in wp-content/plugins/sv-disper-bar/classes/Front.php:3
- > PHP Fatal error
Uncaught Error: Class 'SV_Disper_Bar\\Main' not found in wp-content/plugins/sv-disper-bar/classes/Options.php:3
- > PHP Fatal error
Uncaught Error: Class 'SV_Disper_Bar\\Main' not found in wp-content/plugins/sv-disper-bar/classes/Admin.php:3
- > PHP Fatal error
Uncaught Error: Class 'SV_Disper_Bar\\Main' not found in wp-content/plugins/sv-disper-bar/classes/Functions.php:3
- > PHP Fatal error
Uncaught Error: Class 'SV_Disper_Bar\\Main' not found in wp-content/plugins/sv-disper-bar/classes/Processing_Fields.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4, #5, #6, #7 in sv-disper-bar/assets to your readme.txt
sv-disper-bar/sv-disper-bar.php 85% from 13 tests
The principal PHP file in "SV Discount Progress Bar" v. 1.2.2 is loaded by WordPress automatically on each request
You should first fix the following items:
- Description: Please don't use more than 140 characters for the plugin description (currently 228 characters long)
- Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes
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
Success! There were no dangerous files found in this plugin1,879 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 288 | 481 | 1,364 |
CSS | 2 | 7 | 4 | 267 |
PO File | 1 | 59 | 76 | 138 |
JavaScript | 2 | 18 | 5 | 106 |
JSON | 1 | 0 | 0 | 4 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 12.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 76 | |
▷ Static methods | 13 | 17.11% |
▷ Public methods | 75 | 98.68% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.32% |
Functions | 9 | |
▷ Named functions | 8 | 88.89% |
▷ Anonymous functions | 1 | 11.11% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin