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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼5.41ms] Passed 4 tests
This is a short check of server-side resources used by WP Counter
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 40.35 ▼9.61 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.60 ▲0.02 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 45.92 ▼2.99 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 86.59 ▼9.04 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.69 ▲2.88 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 28 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_l24bd_wpcounter_visitors |
New WordPress options |
---|
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Counter
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,954 ▲183 | 13.39 ▼0.99 | 2.06 ▼0.19 | 44.85 ▲1.80 |
Dashboard /wp-admin | 2,358 ▲170 | 5.17 ▼0.71 | 116.76 ▲11.17 | 41.92 ▲1.46 |
Posts /wp-admin/edit.php | 2,095 ▲6 | 2.24 ▲0.22 | 33.86 ▼0.42 | 32.26 ▼2.20 |
Add New Post /wp-admin/post-new.php | 1,520 ▲1 | 23.38 ▲0.27 | 618.39 ▼37.26 | 52.29 ▼2.96 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.31 ▲0.08 | 93.60 ▼7.49 | 40.21 ▼4.26 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- Zombie tables detected upon uninstall: 1 table
- wp_l24bd_wpcounter_visitors
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/wp-counter/inc/shortcode.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-counter/inc/dashboard-widget.php:2
- > PHP Fatal error
Uncaught Error: Class 'Haruncpi\\WpCounter\\DB' not found in wp-content/plugins/wp-counter/views/widgets/status-widget.php:13
- > PHP Fatal error
Uncaught Error: Class 'Haruncpi\\WpCounter\\DB' not found in wp-content/plugins/wp-counter/views/widgets/visitor-graph-widget.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-counter/inc/date-helper.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-counter/inc/date-helper.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/wp-counter/views/shortcodes/wpcounter.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
2 plugin tags: counter, wordpress visitor counter
wp-counter/wp-counter.php 85% from 13 tests
The main file in "WP Counter" v. 1.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: The description should be shorter than 140 characters (currently 166 characters long)
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 plugin1,105 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 23 | 212 | 669 | 1,093 |
JSON | 2 | 0 | 0 | 12 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 9.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 47.00 |
Average method complexity | 2.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 3 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 60 | |
▷ Static methods | 22 | 36.67% |
▷ Public methods | 56 | 93.33% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 6.67% |
Functions | 12 | |
▷ Named functions | 11 | 91.67% |
▷ Anonymous functions | 1 | 8.33% |
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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected