Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.27MB] [CPU: ▼0.43ms] Passed 4 tests
An overview of server-side resources used by WP247 Body Classes
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 37.48 ▼3.03 |
Dashboard /wp-admin | 3.68 ▲0.38 | 50.98 ▲2.41 |
Posts /wp-admin/edit.php | 3.73 ▲0.38 | 50.99 ▲2.62 |
Add New Post /wp-admin/post-new.php | 6.23 ▲0.35 | 94.94 ▼2.29 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 39.50 ▲1.21 |
Body Classes /wp-admin/options-general.php?page=wp247_body_classes_options | 3.64 | 41.55 |
Server storage [IO: ▲0.57MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 14 new options
New WordPress options |
---|
wp247_body_classes_css |
wp247_body_classes_scroll |
wp247_body_classes_mobile |
wp247_body_classes_environment |
wp247_body_classes_user |
wp247_body_classes_custom |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
A check of browser resources used by WP247 Body Classes
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲69 | 13.34 ▼1.04 | 1.80 ▼0.09 | 39.41 ▼4.57 |
Dashboard /wp-admin | 2,213 ▲24 | 5.89 ▲0.93 | 97.19 ▼15.23 | 38.96 ▼1.50 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 1.99 ▼0.03 | 40.44 ▲1.57 | 38.48 ▲6.01 |
Add New Post /wp-admin/post-new.php | 6,487 ▲4,967 | 23.14 ▼0.00 | 895.70 ▲207.27 | 55.24 ▼15.26 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.24 ▲0.04 | 93.48 ▼9.04 | 42.92 ▼7.04 |
Body Classes /wp-admin/options-general.php?page=wp247_body_classes_options | 6,057 | 3.35 | 58.36 | 55.91 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 14 options in the database
- wp247_body_classes_user
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- wp247_body_classes_scroll
- wp247_body_classes_archive
- wp247_body_classes_mobile
- wp247_body_classes_css
- can_compress_scripts
- db_upgraded
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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
Please fix the following items
- 9× PHP files output text when accessed directly:
- > /wp-content/plugins/wp247-body-classes/admin/wp247-body-classes-admin-sections.php
- > /wp-content/plugins/wp247-body-classes/admin/wp247xns-client-corequisite-notice/wp247xns-client-corequisite-notice.php
- > /wp-content/plugins/wp247-body-classes/admin/wp247-body-classes-admin-fields.php
- > /wp-content/plugins/wp247-body-classes/admin/wp247-body-classes-admin.php
- > /wp-content/plugins/wp247-body-classes/admin/wp247-body-classes-admin-infobar.php
- > /wp-content/plugins/wp247-body-classes/admin/wp247-settings-api/wp247-settings-api.class.php
- > /wp-content/plugins/wp247-body-classes/wp247-body-classes.php
- > /wp-content/plugins/wp247-body-classes/admin/wp247-body-classes-admin-menu.php
- > /wp-content/plugins/wp247-body-classes/admin/wp247-settings-api/wp247-settings-api.php
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 86% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: These screenshots do not have images: #8 (Custom CSS setting), #9 (Custom Individual Post Body Classes)
- Tags: There are too many tags (40 tag instead of maximum 10)
- Plugin Name: You should set the name of your plugin on the first line (
=== wp247-body-classes ===
)
wp247-body-classes/wp247-body-classes.php 92% from 13 tests
This is the main PHP file of "WP247 Body Classes" version 2.1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 165 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin5,589 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 1,055 | 3,984 | 5,276 |
JavaScript | 3 | 31 | 28 | 199 |
CSS | 1 | 28 | 3 | 114 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.82 |
Average class complexity | 108.11 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 169.00 |
Average method complexity | 4.39 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 78.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 277 | |
▷ Static methods | 57 | 20.58% |
▷ Public methods | 261 | 94.22% |
▷ Protected methods | 12 | 4.33% |
▷ Private methods | 4 | 1.44% |
Functions | 23 | |
▷ Named functions | 22 | 95.65% |
▷ Anonymous functions | 1 | 4.35% |
Constants | 66 | |
▷ Global constants | 12 | 18.18% |
▷ Class constants | 54 | 81.82% |
▷ Public constants | 54 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin