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.11MB] [CPU: ▼2.54ms] Passed 4 tests
Server-side resources used by MC Visitor Tally
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 49.36 ▲8.90 |
Dashboard /wp-admin | 3.42 ▲0.12 | 51.14 ▲1.86 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 52.22 ▲3.68 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 83.56 ▼18.19 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 38.78 ▲2.48 |
MC Visitor Tally /wp-admin/options-general.php?page=mcvisitortally | 3.31 | 34.80 |
Server storage [IO: ▲1.47MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 20 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_mc6397_visitor_tally |
New WordPress options |
---|
widget_theysaidso_widget |
mc6397vt_installed |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_mc6397vt_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for MC Visitor Tally
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,048 ▲302 | 13.64 ▼0.73 | 1.76 ▼0.27 | 41.87 ▼4.83 |
Dashboard /wp-admin | 2,457 ▲275 | 4.87 ▼1.12 | 100.22 ▼11.67 | 39.83 ▼8.92 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.04 | 40.65 ▲0.59 | 35.97 ▼0.09 |
Add New Post /wp-admin/post-new.php | 1,541 ▲27 | 23.29 ▲5.82 | 684.89 ▲27.67 | 52.47 ▼3.47 |
Media Library /wp-admin/upload.php | 1,389 ▼2 | 4.25 ▲0.12 | 110.23 ▲7.90 | 47.01 ▲0.86 |
MC Visitor Tally /wp-admin/options-general.php?page=mcvisitortally | 990 | 2.05 | 24.51 | 28.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- The plugin did not uninstall gracefully
- > Warning in wp-content/plugins/mc-visitor-tally/uninstall.php+9
Use of undefined constant No - assumed 'No' (this will throw an Error in a future version of PHP)
- The uninstall procedure has failed, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/mc-visitor-tally/mc-visitor-tally.php
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mc-visitor-tally/inc/mc6397vt_settings.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/mc-visitor-tally/inc/mc6397vt_shortcode.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mc-visitor-tally/inc/mc6397vt_dashboard-widget.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/mc-visitor-tally/inc/mc6397vt_widget.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Screenshots: Please add descriptions for these screenshots #2, #3, #4, #5, #6 in mc-visitor-tally/assets to your readme.txt
mc-visitor-tally/mc-visitor-tally.php Passed 13 tests
The principal PHP file in "MC Visitor Tally" v. 2.8.3 is loaded by WordPress automatically on each request
123 characters long description:
Counts unique daily visits and displays in various timeframes: Today, Yesterday, Current Week, Current Month, Current Year.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin541 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 113 | 42 | 541 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 2.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 15 | |
▷ Named functions | 14 | 93.33% |
▷ Anonymous functions | 1 | 6.67% |
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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin