Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲1.58MB] [CPU: ▲11.46ms] Passed 4 tests
An overview of server-side resources used by Counten- Sale Counter Advanced
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.06 ▲1.60 | 50.98 ▲10.37 |
Dashboard /wp-admin | 4.88 ▲1.58 | 58.01 ▲7.43 |
Posts /wp-admin/edit.php | 4.93 ▲1.57 | 70.89 ▲25.35 |
Add New Post /wp-admin/post-new.php | 7.48 ▲1.59 | 103.63 ▲10.77 |
Media Library /wp-admin/upload.php | 4.80 ▲1.57 | 49.09 ▲17.25 |
Counten Sale Counter /wp-admin/options-general.php?page=eddadv_options | 7.86 | 52.40 |
Server storage [IO: ▲2.27MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 162 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
eddadv_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Counten- Sale Counter Advanced
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲149 | 14.81 ▲0.23 | 6.26 ▲4.34 | 38.65 ▼2.73 |
Dashboard /wp-admin | 2,233 ▲48 | 5.97 ▲0.15 | 118.39 ▲14.37 | 44.02 ▲0.69 |
Posts /wp-admin/edit.php | 2,116 ▲24 | 2.67 ▲0.62 | 43.26 ▲3.68 | 36.27 ▲2.54 |
Add New Post /wp-admin/post-new.php | 1,530 ▲16 | 17.99 ▲0.48 | 668.03 ▼11.40 | 35.55 ▼23.40 |
Media Library /wp-admin/upload.php | 1,412 ▲24 | 5.18 ▲0.95 | 103.93 ▲2.17 | 40.31 ▼4.54 |
Counten Sale Counter /wp-admin/options-general.php?page=eddadv_options | 1,501 | 4.84 | 55.28 | 81.92 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- eddadv_options
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- 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
Good news, no errors were detected
SRP 0% 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
The following issues need your attention
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/counten-sale-counter-advanced/admin/partials/counten-sale-counter-advanced-admin-display.php
- > /wp-content/plugins/counten-sale-counter-advanced/public/partials/counten-sale-counter-advanced-public-display.php
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'COUNTEN_Fields' not found in wp-content/plugins/counten-sale-counter-advanced/admin/partials/edd-adv-custom-csf.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: sale counter, easy digital downloads, edd, sale
counten-sale-counter-advanced/counten-sale-counter-advanced.php Passed 13 tests
The main PHP file in "Counten- Sale Counter Advanced" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin47,549 lines of code in 133 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 9 | 4,444 | 2,842 | 20,717 |
PHP | 81 | 2,757 | 1,666 | 7,783 |
CSS | 7 | 495 | 581 | 6,875 |
PO File | 20 | 3,198 | 3,591 | 6,500 |
Sass | 16 | 970 | 3 | 5,674 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.63 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 151.00 |
Average method complexity | 6.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 71 | |
▷ Abstract classes | 2 | 2.82% |
▷ Concrete classes | 69 | 97.18% |
▷ Final classes | 0 | 0.00% |
Methods | 286 | |
▷ Static methods | 41 | 14.34% |
▷ Public methods | 276 | 96.50% |
▷ Protected methods | 2 | 0.70% |
▷ Private methods | 8 | 2.80% |
Functions | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/vendors/counten-framework/assets/images/checkerboard.png | 2.29KB | 2.54KB | 0.00% |