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
Install script ran successfully
Server metrics [RAM: ▼0.17MB] [CPU: ▼9.59ms] Passed 4 tests
A check of server-side resources used by CP Popular Blog
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▼0.61 | 21.29 ▼23.84 |
Dashboard /wp-admin | 3.34 ▲0.03 | 48.45 ▲5.88 |
Posts /wp-admin/edit.php | 3.20 ▼0.16 | 29.65 ▼18.52 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 110.94 ▲5.66 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 34.60 ▼1.64 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_cp_popular_blogs |
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_cppb_widget |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for CP Popular Blog
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 14.48 ▲0.21 | 1.86 ▼0.34 | 42.73 ▼16.30 |
Dashboard /wp-admin | 2,211 ▲23 | 5.85 ▼0.05 | 122.76 ▼11.80 | 49.39 ▲7.79 |
Posts /wp-admin/edit.php | 2,091 ▲5 | 2.04 ▼0.02 | 39.33 ▼1.36 | 36.23 ▼0.33 |
Add New Post /wp-admin/post-new.php | 1,537 ▲18 | 20.53 ▼0.57 | 684.88 ▼24.47 | 69.92 ▼4.97 |
Media Library /wp-admin/upload.php | 1,390 ▲2 | 4.27 ▲0.02 | 101.79 ▼20.71 | 48.61 ▼13.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The uninstall procedure failed, leaving 1 table in the database
- wp_cp_popular_blogs
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-comments
- can_compress_scripts
- widget_cppb_widget
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/cp-popular-blog/cp-popular-blogs.php
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/cp-popular-blog/widget.php:2
- > 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 errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
- Donate link: Please fix this invalid URI: ""
cp-popular-blog/cp-popular-blogs.php 92% from 13 tests
The principal PHP file in "CP Popular Blog" v. 1.2.0 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("cp-popular-blog.php" instead of "cp-popular-blogs.php")
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
There were no executable files found in this plugin154 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 33 | 13 | 128 |
CSS | 1 | 0 | 0 | 26 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin