Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.98MB] [CPU: ▼0.25ms] Passed 4 tests
An overview of server-side resources used by Counter Number
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.43 ▲0.97 | 42.75 ▲2.11 |
Dashboard /wp-admin | 4.28 ▲0.98 | 47.90 ▲1.04 |
Posts /wp-admin/edit.php | 4.40 ▲1.04 | 54.41 ▲6.01 |
Add New Post /wp-admin/post-new.php | 6.87 ▲0.98 | 87.54 ▼10.16 |
Media Library /wp-admin/upload.php | 4.21 ▲0.98 | 42.38 ▲8.60 |
WpMart Plugins /wp-admin/admin.php?page=con-6310-wpmart-plugins | 4.18 | 33.40 |
How to use /wp-admin/admin.php?page=con-6310-counter-number-use | 4.18 | 38.74 |
Import/Export Plugin /wp-admin/admin.php?page=con-6310-counter-number-import-export | 4.20 | 48.92 |
Template 11-20 /wp-admin/admin.php?page=con-6310-template-11-20 | 4.42 | 34.91 |
Manage Items /wp-admin/admin.php?page=con-6310-counter-number-manage-items | 4.49 | 45.64 |
License /wp-admin/admin.php?page=con-6310-counter-number-license | 4.18 | 34.65 |
Template 01-10 /wp-admin/admin.php?page=con-6310-template-01-10 | 4.39 | 36.01 |
All Counter Number /wp-admin/admin.php?page=con-6310-counter-number | 4.19 | 44.02 |
Server storage [IO: ▲1.94MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 128 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_con_6310_style |
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
con_6310_version_info |
Browser metrics Passed 4 tests
Checking browser requirements for Counter Number
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,931 ▲196 | 13.99 ▼0.38 | 8.34 ▲6.49 | 39.01 ▼8.84 |
Dashboard /wp-admin | 2,247 ▲56 | 5.84 ▲0.75 | 103.54 ▼3.57 | 39.57 ▼2.55 |
Posts /wp-admin/edit.php | 2,136 ▲47 | 2.01 ▲0.02 | 37.22 ▼1.16 | 33.39 ▼0.92 |
Add New Post /wp-admin/post-new.php | 1,579 ▲46 | 23.26 ▲0.20 | 646.75 ▼49.12 | 55.76 ▼3.85 |
Media Library /wp-admin/upload.php | 1,438 ▲47 | 4.28 ▲0.09 | 97.56 ▼8.87 | 40.49 ▼7.29 |
WpMart Plugins /wp-admin/admin.php?page=con-6310-wpmart-plugins | 1,022 | 2.73 | 43.18 | 60.38 |
How to use /wp-admin/admin.php?page=con-6310-counter-number-use | 3,581 | 43.83 | 961.42 | 70.46 |
Import/Export Plugin /wp-admin/admin.php?page=con-6310-counter-number-import-export | 1,182 | 3.98 | 62.16 | 47.67 |
Template 11-20 /wp-admin/admin.php?page=con-6310-template-11-20 | 9,757 | 2.81 | 97.67 | 382.15 |
Manage Items /wp-admin/admin.php?page=con-6310-counter-number-manage-items | 5,933 | 3.97 | 55.48 | 38.10 |
License /wp-admin/admin.php?page=con-6310-counter-number-license | 962 | 2.69 | 34.42 | 33.14 |
Template 01-10 /wp-admin/admin.php?page=con-6310-template-01-10 | 4,972 | 19.47 | 608.69 | 383.35 |
All Counter Number /wp-admin/admin.php?page=con-6310-counter-number | 937 | 2.65 | 39.14 | 40.25 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_con_6310_style
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- con_6310_version_info
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
Almost there! Just fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/counter-number/settings/helper/tab-menu.php
- 101× 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 esc_attr() in wp-content/plugins/counter-number/settings/templates/template-03.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/counter-number/output/template-03.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/counter-number/settings/helper/_helper-01.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/counter-number/settings/form/_form-12.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/counter-number/settings/css/_css-17.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/counter-number/settings/helper/_helper-19.php:80
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/counter-number/settings/helper/_helper-20.php:49
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/counter-number/settings/css/_css-11.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/counter-number/settings/form/_form-02.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/counter-number/settings/templates/template-07.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=con-6310-template-11-20
- > Network (severe)
https://pluginsbd.com/wp-content/project-images/counter-number/5.jpg - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
- > GET request to /wp-admin/admin.php?page=con-6310-template-11-20
- > Network (severe)
https://pluginsbd.com/wp-content/project-images/counter-number/1.jpg - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
- > GET request to /wp-admin/admin.php?page=con-6310-template-11-20
- > Network (severe)
https://pluginsbd.com/wp-content/project-images/counter-number/10.jpg - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
- > GET request to /wp-admin/admin.php?page=con-6310-template-01-10
- > Network (severe)
https://www.pluginsbd.com/wp-content/plugin-images/con/1.jpg - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
- > GET request to /wp-admin/admin.php?page=con-6310-template-01-10
- > Network (severe)
https://www.pluginsbd.com/wp-content/plugin-images/con/9.jpg - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Counter Number Template 01-10), #2 (Counter Number Template 11-20)
counter-number/index.php 92% from 13 tests
The main PHP file in "Counter Number" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("counter-number.php" instead of "index.php")
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
No dangerous file extensions were detected24,882 lines of code in 122 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 109 | 1,032 | 459 | 19,104 |
CSS | 6 | 221 | 29 | 5,068 |
JavaScript | 7 | 48 | 28 | 710 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.74 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 40 | |
▷ Named functions | 40 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
4 PNG files occupy 0.43MB with 0.25MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/css/fs-sprite.png | 1.07KB | 0.18KB | ▼ 82.82% |
assets/css/jquery.minicolors.png | 67.02KB | 34.31KB | ▼ 48.80% |
assets/css/hover.png | 1.27KB | 0.66KB | ▼ 48.23% |
assets/images/demo-1.png | 372.25KB | 163.80KB | ▼ 56.00% |