Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.53MB] [CPU: ▼28.44ms] Passed 4 tests
An overview of server-side resources used by Disable Blog
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.30 | 38.05 ▼9.60 |
Dashboard /wp-admin | 3.48 ▲0.17 | 39.63 ▼16.44 |
Posts /wp-admin/edit.php | 3.35 ▼0.01 | 28.97 ▼20.76 |
Add New Post /wp-admin/post-new.php | 3.35 ▼2.54 | 29.39 ▼66.96 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 34.69 ▲0.09 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Disable Blog: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,149 ▼612 | 13.91 ▼0.65 | 1.74 ▼0.47 | 43.08 ▼4.19 |
Dashboard /wp-admin | 1,549 ▼628 | 5.32 ▼0.34 | 78.48 ▼19.79 | 38.01 ▼7.81 |
Posts /wp-admin/edit.php | 1,959 ▼141 | 2.15 ▲0.20 | 40.61 ▲2.29 | 36.76 ▲1.63 |
Add New Post /wp-admin/post-new.php | 1,475 ▼53 | 22.61 ▼0.43 | 647.04 ▼60.32 | 52.01 ▼0.15 |
Media Library /wp-admin/upload.php | 1,365 ▼29 | 4.20 ▲0.03 | 96.18 ▼19.79 | 44.40 ▼4.11 |
Uninstaller [IO: ▲0.18MB] [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 followingThe uninstall procedure has failed, leaving 6 options in the database
- This plugin has failed uninstalling correctly, leaving 22 files (0.18MB) in the plugin directory
- (new file) CHANGELOG.md
- (new file) assets/js/disable-blog-customizer.js
- (new file) includes/class-disable-blog-activator.php
- (new file) assets/js/disable-blog-admin.js
- (new file) README.md
- (new file) LICENSE.txt
- (new file) disable-blog.php
- (new file) assets/css/disable-blog-admin.css
- (new file) includes/class-disable-blog-admin.php
- (new file) includes/class-disable-blog-deactivator.php
- ...
- widget_recent-posts
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- 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
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/disable-blog/uninstall.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: disable rest api, posts, disable feeds, feeds, disable blog...
disable-blog/disable-blog.php Passed 13 tests
The primary PHP file in "Disable Blog" version 0.5.3 is used by WordPress to initiate all plugin functionality
120 characters long description:
Go blog-less with WordPress. This plugin disables all blog-related functionality (by hiding, removing, and redirecting).
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,703 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 641 | 1,752 | 1,389 |
Markdown | 2 | 52 | 0 | 252 |
JavaScript | 2 | 21 | 8 | 46 |
CSS | 1 | 2 | 4 | 16 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.57 |
Average class complexity | 28.89 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 118.00 |
Average method complexity | 3.49 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.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 | 101 | |
▷ Static methods | 9 | 8.91% |
▷ Public methods | 85 | 84.16% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 16 | 15.84% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin