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: ▲0.02MB] [CPU: ▼4.39ms] Passed 4 tests
Server-side resources used by Mzz-stat
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 43.06 ▲1.74 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.10 ▲1.27 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 43.45 ▼1.66 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 84.44 ▼18.54 |
Media Library /wp-admin/upload.php | 3.25 ▲0.02 | 34.95 ▲1.39 |
Mzz-stat /wp-admin/tools.php?page=mzz_mzzstat_admin | 3.21 | 29.59 |
Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 3 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_mzzstat_v2 |
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Mzz-stat
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲7 | 14.31 ▼0.06 | 1.67 ▼0.31 | 49.21 ▲8.80 |
Dashboard /wp-admin | 2,202 ▲22 | 5.60 ▲0.02 | 94.45 ▲1.85 | 41.84 ▲1.37 |
Posts /wp-admin/edit.php | 2,104 ▲7 | 2.01 ▼0.01 | 38.10 ▲1.03 | 33.62 ▼11.37 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.14 ▲0.34 | 597.40 ▼10.22 | 70.50 ▲10.80 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.20 ▲0.02 | 101.05 ▼1.79 | 45.81 ▲0.79 |
Mzz-stat /wp-admin/tools.php?page=mzz_mzzstat_admin | 991 | 1.99 | 23.85 | 33.73 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
The following issues need your attention
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/mzz-stat/mzz-stat.php:31
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
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
5 plugin tags: page views, stats, statistics, visits per page per day, hit counter
mzz-stat/mzz-stat.php Passed 13 tests
"Mzz-stat" version 20170304.1423's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
54 characters long description:
A plugin that records statistics for a WordPress site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected120 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 81 | 44 | 120 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.12 |
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 | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin