Benchmarks
Plugin footprint 83% 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 gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▲1.51ms] Passed 4 tests
An overview of server-side resources used by Wpit Blog Stats
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 44.70 ▲1.88 |
Dashboard /wp-admin | 3.37 ▲0.07 | 47.84 ▼0.82 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 50.06 ▲0.76 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 105.45 ▲4.22 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.02 ▲4.38 |
Wpit Stats Settings /wp-admin/options-general.php?page=wpit-stats-settings | 3.25 | 34.10 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
wpit_blogstats_version |
widget_recent-comments |
widget_recent-posts |
wpit-stats-years-options |
Browser metrics Passed 4 tests
Checking browser requirements for Wpit Blog Stats
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲79 | 13.17 ▼1.12 | 2.06 ▲0.12 | 42.85 ▼5.30 |
Dashboard /wp-admin | 2,217 ▲29 | 5.83 ▲0.93 | 99.25 ▼0.26 | 41.98 ▼0.80 |
Posts /wp-admin/edit.php | 2,103 ▲14 | 2.01 ▲0.01 | 35.81 ▼5.40 | 36.10 ▲0.61 |
Add New Post /wp-admin/post-new.php | 1,550 ▲8 | 18.19 ▲0.17 | 588.58 ▼5.62 | 66.04 ▲5.63 |
Media Library /wp-admin/upload.php | 1,402 ▲14 | 4.21 ▼0.02 | 96.66 ▼5.47 | 42.44 ▼2.99 |
Wpit Stats Settings /wp-admin/options-general.php?page=wpit-stats-settings | 797 | 2.05 | 24.39 | 28.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 8 options in the database
- db_upgraded
- wpit-stats-years-options
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- wpit_blogstats_version
- 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
Good news, no errors were detected
SRP 50% from 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 following issues need your attention
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wpit-blog-stats/wpit-blog-stats.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpit-blog-stats/inc/class-wpit-messages.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
1 plugin tags: stats
wpit-blog-stats/wpit-blog-stats.php Passed 13 tests
The main PHP script in "Wpit Blog Stats" version 1.4 is automatically included on every request by WordPress
27 characters long description:
Basic stats about your blog
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected305 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 225 | 187 | 278 |
CSS | 2 | 14 | 12 | 27 |
PHP code Passed 2 tests
Analyzing 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.34 |
Average class complexity | 18.50 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.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 | 21 | |
▷ Static methods | 1 | 4.76% |
▷ Public methods | 14 | 66.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 33.33% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 4 | |
▷ Global constants | 4 | 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
PNG images were not found in this plugin