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.15MB] [CPU: ▼10.46ms] Passed 4 tests
Analyzing server-side resources used by Sales Countdown Timer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.63 ▲0.16 | 35.95 ▼8.11 |
Dashboard /wp-admin | 3.47 ▲0.12 | 43.46 ▼22.12 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 45.92 ▼1.34 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 90.44 ▼10.25 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 33.38 ▼0.82 |
Server storage [IO: ▲2.71MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 69 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Sales Countdown Timer
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲63 | 13.63 ▲0.41 | 5.36 ▲0.85 | 40.55 ▼1.53 |
Dashboard /wp-admin | 2,215 ▲27 | 4.88 ▼0.94 | 106.94 ▼1.79 | 42.63 ▼2.10 |
Posts /wp-admin/edit.php | 2,101 ▲12 | 2.04 ▲0.04 | 39.68 ▲2.85 | 34.86 ▲1.58 |
Add New Post /wp-admin/post-new.php | 1,553 ▲39 | 18.16 ▲0.79 | 610.60 ▼56.67 | 53.89 ▲1.77 |
Media Library /wp-admin/upload.php | 1,391 ▲3 | 4.18 ▲0.01 | 97.02 ▲3.46 | 43.33 ▼0.67 |
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 does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Tags: Too many tags (14 tag instead of maximum 10); only the first 5 tags are used in your directory listing
sales-countdown-timer/sales-countdown-timer.php Passed 13 tests
The principal PHP file in "Sales Countdown Timer" v. 1.1.0 is loaded by WordPress automatically on each request
129 characters long description:
Create a sense of urgency with a countdown to the beginning or end of sales, store launch or other events for higher conversions.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected15,139 lines of code in 59 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 13 | 411 | 195 | 7,037 |
PHP | 13 | 395 | 234 | 5,988 |
CSS | 31 | 188 | 533 | 1,074 |
SVG | 1 | 0 | 0 | 565 |
PO File | 1 | 187 | 306 | 475 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
These items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 203)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 86.18 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 206.00 |
Average method complexity | 7.42 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 203.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 146 | |
▷ Static methods | 3 | 2.05% |
▷ Public methods | 136 | 93.15% |
▷ Protected methods | 5 | 3.42% |
▷ Private methods | 5 | 3.42% |
Functions | 5 | |
▷ Named functions | 3 | 60.00% |
▷ Anonymous functions | 2 | 40.00% |
Constants | 11 | |
▷ Global constants | 11 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin