Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼2.93ms] Passed 4 tests
This is a short check of server-side resources used by Counter Box - WordPress plugin for countdown, timer, counter
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 40.45 ▲1.57 |
Dashboard /wp-admin | 3.41 ▲0.10 | 45.36 ▼6.20 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 49.02 ▼2.34 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 84.31 ▼4.28 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 36.23 ▲1.11 |
All Counters /wp-admin/admin.php?page=counter-box | 3.43 | 34.89 |
Server storage [IO: ▲1.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 81 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_counter_box |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Counter Box - WordPress plugin for countdown, timer, counter
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,820 ▲34 | 14.38 ▼0.18 | 1.87 ▲0.15 | 43.28 ▲2.91 |
Dashboard /wp-admin | 2,229 ▲55 | 5.63 ▲0.09 | 83.61 ▼18.70 | 38.88 ▼4.04 |
Posts /wp-admin/edit.php | 2,131 ▲31 | 2.02 ▼0.00 | 40.22 ▼0.59 | 35.48 ▼2.04 |
Add New Post /wp-admin/post-new.php | 1,551 ▲14 | 23.61 ▲5.37 | 662.71 ▲20.73 | 50.83 ▼18.56 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 4.21 ▲0.06 | 96.17 ▼8.40 | 43.42 ▲0.09 |
All Counters /wp-admin/admin.php?page=counter-box | 1,098 | 2.09 | 40.19 | 27.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie tables were found after uninstall: 1 table
- wp_counter_box
- Zombie WordPress options were found after uninstall: 6 options
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test
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
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/counter-box/admin/settings/options/style.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/counter-box/admin/settings/options/settings.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr__() in wp-content/plugins/counter-box/admin/settings/options/content.php:12
- > 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/admin.php?page=counter-box
- > Javascript (severe) in unknown
/wp-content/plugins/counter-box/admin/assets/js/script.min.js?ver=1.2.3 0:1993 Uncaught TypeError: Cannot read properties of undefined (reading 'toString')
- > GET request to /wp-admin/admin.php?page=counter-box
- > Javascript (severe) in unknown
/wp-content/plugins/counter-box/admin/assets/js/preview.min.js?ver=1.2.3 0:53 Uncaught TypeError: Cannot read properties of undefined (reading 'replace')
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Example), #2 (Backend), #3 (Backend), #4 (Frontend), #5 (Frontend)
counter-box/counter-box.php 92% from 13 tests
The principal PHP file in "Counter Box - WordPress plugin for countdown, timer, counter" v. 1.2.3 is loaded by WordPress automatically on each request
You should first fix the following items:
- 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 glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin11,740 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 8 | 1,741 | 23 | 7,587 |
PHP | 32 | 481 | 526 | 3,180 |
JavaScript | 12 | 192 | 178 | 973 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 20.75 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 2.55 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 1 | 25.00% |
Methods | 51 | |
▷ Static methods | 11 | 21.57% |
▷ Public methods | 40 | 78.43% |
▷ Protected methods | 1 | 1.96% |
▷ Private methods | 10 | 19.61% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
15 PNG files occupy 0.49MB with 0.34MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-4.png | 83.63KB | 27.05KB | ▼ 67.65% |
admin/assets/img/code-solid.png | 27.79KB | 9.27KB | ▼ 66.63% |
screenshot-2.png | 35.43KB | 9.78KB | ▼ 72.41% |
admin/assets/img/palette-solid.png | 22.60KB | 6.90KB | ▼ 69.47% |
screenshot-5.png | 84.55KB | 26.82KB | ▼ 68.28% |