Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.28MB] [CPU: ▼144.02ms] Passed 4 tests
Server-side resources used by Disable Blogging in WordPress
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.02 ▲0.30 | 49.41 ▲24.68 |
Dashboard /wp-admin | 3.39 ▲0.34 | 48.00 ▼7.60 |
Posts /wp-admin/edit.php | 3.45 ▲0.34 | 54.16 ▲7.14 |
Add New Post /wp-admin/post-new.php | 5.67 ▲0.24 | 101.60 ▼580.24 |
Media Library /wp-admin/upload.php | 3.26 ▲0.26 | 38.14 ▲4.62 |
Blogging /wp-admin/options-general.php?page=blogging | 3.27 | 34.48 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 23 new files
Database: no new tables, 5 new options
New WordPress options |
---|
factmaven_dsbl_profile |
factmaven_dsbl_general |
factmaven_dsbl_menu |
factmaven_dsbl_extra |
factmaven_dsbl_version |
Browser metrics Passed 4 tests
An overview of browser requirements for Disable Blogging in WordPress
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,169 ▼427 | 17.07 ▲1.57 | 7.92 ▼4.03 | 49.32 ▼4.23 |
Dashboard /wp-admin | 2,497 ▼437 | 7.83 ▲1.89 | 146.39 ▼7.52 | 95.45 ▼30.08 |
Posts /wp-admin/edit.php | 2,950 ▲211 | 4.26 ▲1.57 | 84.87 ▲18.70 | 94.48 ▲0.21 |
Add New Post /wp-admin/post-new.php | 1,671 ▼12 | 18.59 ▼0.20 | 351.35 ▼74.97 | 131.79 ▲7.76 |
Media Library /wp-admin/upload.php | 1,793 ▼17 | 4.91 ▼0.09 | 124.58 ▼35.89 | 138.47 ▲13.99 |
Blogging /wp-admin/options-general.php?page=blogging | 1,884 | 4.16 | 86.25 | 89.38 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Fact_Maven_Disable_Blogging_Settings_API' not found in wp-content/plugins/disable-blogging/admin/settings-page.php:17
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/disable-blogging/admin/plugin-meta.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 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
Attributes that require attention:
- Screenshots: These screenshots need descriptions #2, #3, #4 in disable-blogging/assets to your readme.txt
- Tags: Too many tags (37 tag instead of maximum 10); only the first 5 tags are used in your directory listing
disable-blogging/disable-blogging.php 92% from 13 tests
Analyzing the main PHP file in "Disable Blogging in WordPress" version 2.1.0
The following require your attention:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected1,494 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 195 | 436 | 1,222 |
PO File | 1 | 84 | 119 | 222 |
CSS | 6 | 0 | 5 | 50 |
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.51 |
Average class complexity | 27.86 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 69.00 |
Average method complexity | 3.14 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 80 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 79 | 98.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 1.25% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin