Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼3.18ms] Passed 4 tests
A check of server-side resources used by Counter Number Showcase, Fun Facts - Wordpress Animated Counter Plugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 34.25 ▼4.44 |
Dashboard /wp-admin | 3.41 ▲0.11 | 46.40 ▼3.81 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 46.03 ▲1.37 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 90.38 ▼5.84 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 32.73 ▲1.92 |
All counters /wp-admin/edit.php?post_type=counter_numbers | 3.38 | 34.52 |
Add New Counter /wp-admin/post-new.php?post_type=counter_numbers | 3.47 | 40.70 |
Server storage [IO: ▲3.40MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 96 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_theysaidso_widget |
wpsm_cns_default_settings |
widget_recent-posts |
wpsm_cns_review |
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Counter Number Showcase, Fun Facts - Wordpress Animated Counter Plugin
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,932 ▲170 | 13.56 ▼0.71 | 10.96 ▲9.21 | 37.23 ▼6.72 |
Dashboard /wp-admin | 2,222 ▲45 | 5.68 ▲0.02 | 89.46 ▼5.41 | 37.36 ▼7.01 |
Posts /wp-admin/edit.php | 2,124 ▲24 | 1.94 ▼0.02 | 39.70 ▲1.57 | 36.27 ▲2.56 |
Add New Post /wp-admin/post-new.php | 1,554 ▲25 | 25.03 ▲1.74 | 607.13 ▼55.67 | 72.59 ▲15.88 |
Media Library /wp-admin/upload.php | 1,424 ▲21 | 4.21 ▼0.02 | 97.47 ▼1.09 | 45.38 ▲5.03 |
All counters /wp-admin/edit.php?post_type=counter_numbers | 1,093 | 1.93 | 32.25 | 31.33 |
Add New Counter /wp-admin/post-new.php?post_type=counter_numbers | 8,987 | 12.46 | 646.44 | 275.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Zombie WordPress options were found after uninstall: 8 options
- wpsm_cns_default_settings
- widget_recent-posts
- wpsm_cns_review
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/post-new.php?post_type=counter_numbers
- > Notice in wp-content/plugins/counter-number-showcase/inc/admin/settings.php+305
Undefined variable: font_family_group
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/counter-number-showcase/templates/designs/index.php
- 14× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/counter-number-showcase/inc/admin/script.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/counter-number-showcase/inc/admin/add-counter-box.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/counter-number-showcase/inc/admin/more-pro.php:141
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/counter-number-showcase/inc/admin/help.php:55
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/counter-number-showcase/inc/admin/add-counter-box-js-footer.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/counter-number-showcase/templates/shortcode.php:2
- > PHP Notice
Undefined variable: mydemo in wp-content/plugins/counter-number-showcase/templates/designs/index.php on line 5
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/counter-number-showcase/templates/designs/index.php on line 5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/counter-number-showcase/templates/designs/style.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/counter-number-showcase/inc/admin/font-family.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 97% 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
These attributes need your attention:
- Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
counter-number-showcase/counter-number-showcase.php Passed 13 tests
"Counter Number Showcase, Fun Facts - Wordpress Animated Counter Plugin" version 1.3.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
87 characters long description:
counter number showcase plugin is used to display counter number on blog and post page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin26,415 lines of code in 73 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 13 | 2,059 | 1,526 | 12,804 |
CSS | 14 | 251 | 152 | 5,449 |
SVG | 1 | 0 | 0 | 2,671 |
PHP | 17 | 213 | 85 | 1,965 |
Sass | 14 | 34 | 34 | 1,768 |
LESS | 14 | 34 | 44 | 1,758 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.38 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 1 | 6.25% |
▷ Public methods | 15 | 93.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 6.25% |
Functions | 8 | |
▷ Named functions | 8 | 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 0% from 2 tests
Image compression 0% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
13 PNG files occupy 1.26MB with 0.65MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/wpshopmart-logo.png | 25.28KB | 13.46KB | ▼ 46.76% |
assets/tooltip/img/title-color.png | 18.18KB | 8.07KB | ▼ 55.61% |
(invalid) assets/images/cb.png | 502.24KB | 0.00KB | ▼ 100.00% |
assets/images/ac.png | 40.44KB | 44.38KB | 0.00% |
assets/tooltip/img/icon-color.png | 13.51KB | 5.90KB | ▼ 56.32% |