Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
- Install procedure had errors
- > User deprecated in wp-includes/functions.php+5643
File upgrade-functions.php is deprecated since version 2.5.0! Use wp-admin/includes/upgrade.php instead.
Server metrics [RAM: ▲0.02MB] [CPU: ▼0.60ms] Passed 4 tests
An overview of server-side resources used by Stats for WP
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 35.70 ▼0.22 |
Dashboard /wp-admin | 3.33 ▲0.03 | 46.11 ▼0.27 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 50.47 ▼2.65 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.02 | 92.76 ▲0.74 |
Media Library /wp-admin/upload.php | 3.26 ▲0.02 | 35.10 ▲3.07 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 2 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_statsforwp |
New WordPress options |
---|
widget_theysaidso_widget |
stats_for_wp_current_version |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
stats_for_wpinstalled |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Stats for WP
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,816 ▲70 | 14.74 ▲0.33 | 1.79 ▲0.21 | 41.71 ▼1.01 |
Dashboard /wp-admin | 2,222 ▲31 | 5.84 ▲0.75 | 97.84 ▼6.77 | 37.57 ▼3.84 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.04 ▼0.02 | 40.24 ▲1.86 | 35.20 ▲2.71 |
Add New Post /wp-admin/post-new.php | 1,546 ▲11 | 23.23 ▲0.02 | 597.09 ▼22.44 | 55.22 ▲1.05 |
Media Library /wp-admin/upload.php | 1,404 ▲16 | 4.20 ▼0.01 | 93.63 ▼6.56 | 41.63 ▼1.87 |
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
It is recommended to fix the following
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_statsforwp
- The uninstall procedure has failed, leaving 8 options in the database
- db_upgraded
- stats_for_wpinstalled
- widget_recent-posts
- widget_recent-comments
- stats_for_wp_current_version
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests Passed 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)
Good news, no errors were detected
SRP Passed 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success
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 96% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
3 plugin tags: stats, user stats, logs
stats-for-wp/stats-for-wp.php 92% from 13 tests
Analyzing the main PHP file in "Stats for WP" version 1.0.3
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 166 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin235 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 44 | 16 | 235 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected