Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲1.46MB] [CPU: ▲5.76ms] Passed 4 tests
This is a short check of server-side resources used by Wp Disabler
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.81 ▲1.35 | 43.63 ▲3.07 |
Dashboard /wp-admin | 4.84 ▲1.53 | 50.16 ▲4.43 |
Posts /wp-admin/edit.php | 4.89 ▲1.53 | 53.04 ▲8.19 |
Add New Post /wp-admin/post-new.php | 7.37 ▲1.49 | 101.26 ▲8.53 |
Media Library /wp-admin/upload.php | 4.70 ▲1.47 | 41.18 ▲7.33 |
Wp Disaber /wp-admin/admin.php?page=wp_disabler | 8.94 | 69.19 |
Style /wp-admin/admin.php?page=style | 8.79 | 64.33 |
Server storage [IO: ▲1.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 237 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Wp Disabler
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,943 ▲208 | 14.01 ▼0.37 | 5.52 ▲3.81 | 38.76 ▼2.67 |
Dashboard /wp-admin | 2,237 ▲45 | 4.91 ▼0.04 | 108.77 ▲1.02 | 40.55 ▲0.49 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.02 ▼0.02 | 39.50 ▲5.08 | 37.13 ▲2.94 |
Add New Post /wp-admin/post-new.php | 1,554 ▲40 | 18.52 ▲0.96 | 592.46 ▼110.57 | 67.33 ▼1.44 |
Media Library /wp-admin/upload.php | 1,422 ▲34 | 4.22 ▲0.03 | 94.45 ▼18.53 | 42.40 ▼3.99 |
Wp Disaber /wp-admin/admin.php?page=wp_disabler | 1,359 | 2.29 | 32.63 | 67.90 |
Style /wp-admin/admin.php?page=style | 1,215 | 2.54 | 46.63 | 43.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-disabler/public/partials/plugin-name-public-display.php
- 199× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'AdminPageFramework_Form_View___Attribute_Base' not found in wp-content/plugins/wp-disabler/admin/lib/apf/factory/_common/form/_view/attribute/AdminPageFramework_Form_View___Attribute_SectionsTablesContainer.php:7
- > PHP Fatal error
Uncaught Error: Class 'AdminPageFramework_FrameworkUtility' not found in wp-content/plugins/wp-disabler/admin/lib/apf/factory/admin_page/_view/AdminPageFramework_View__PageRenderer__ScreenIcon.php:7
- > PHP Fatal error
Uncaught Error: Class 'AdminPageFramework_Form_Base' not found in wp-content/plugins/wp-disabler/admin/lib/apf/factory/_common/form/_view/sectionset/AdminPageFramework_Form_View___CollapsibleSectionTitle.php:7
- > PHP Fatal error
Uncaught Error: Class 'AdminPageFramework_Form_View___CSS_Base' not found in wp-content/plugins/wp-disabler/admin/lib/apf/factory/_common/form/_view/css/AdminPageFramework_Form_View___CSS_ToolTip.php:7
- > PHP Fatal error
Uncaught Error: Class 'AdminPageFramework_Model__FormSubmission__Validator_Base' not found in wp-content/plugins/wp-disabler/admin/lib/apf/factory/admin_page/_model/delegate/validaor/AdminPageFramework_Model__FormSubmission__Validator__ContactFormConfirm.php:7
- > PHP Fatal error
Uncaught Error: Class 'AdminPageFramework_FrameworkUtility' not found in wp-content/plugins/wp-disabler/admin/lib/apf/factory/_common/form/notice/AdminPageFramework_Form___SubmitNotice.php:7
- > PHP Fatal error
Uncaught Error: Class 'AdminPageFramework_FrameworkUtility' not found in wp-content/plugins/wp-disabler/admin/lib/apf/factory/admin_page/_model/delegate/AdminPageFramework_Model__FormEmailHandler.php:7
- > PHP Fatal error
Uncaught Error: Class 'AdminPageFramework_FrameworkUtility' not found in wp-content/plugins/wp-disabler/admin/lib/apf/factory/_common/form/_model/AdminPageFramework_Form_Model___FieldTypeRegistration.php:7
- > PHP Fatal error
Uncaught Error: Class 'AdminPageFramework_FieldType' not found in wp-content/plugins/wp-disabler/admin/lib/apf/factory/_common/form/field_type/AdminPageFramework_FieldType_posttype.php:7
- > PHP Fatal error
Uncaught Error: Class 'AdminPageFramework_TaxonomyField_Controller' not found in wp-content/plugins/wp-disabler/admin/lib/apf/factory/term_meta/AdminPageFramework_TermMeta.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #1, #2, #3, #4, #5, #6 in wp-disabler/assets to your readme.txt
wp-disabler/wp-disabler.php 92% from 13 tests
"Wp Disabler" version 1.2.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
There were no executable files found in this plugin16,370 lines of code in 230 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 226 | 954 | 2,122 | 16,245 |
CSS | 2 | 16 | 27 | 94 |
JavaScript | 2 | 25 | 114 | 31 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 6.98 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 159.00 |
Average method complexity | 2.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 331 | |
▷ Abstract classes | 93 | 28.10% |
▷ Concrete classes | 238 | 71.90% |
▷ Final classes | 2 | 0.84% |
Methods | 1,707 | |
▷ Static methods | 244 | 14.29% |
▷ Public methods | 952 | 55.77% |
▷ Protected methods | 274 | 16.05% |
▷ Private methods | 481 | 28.18% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 2 | 14.29% |
▷ Class constants | 12 | 85.71% |
▷ Public constants | 12 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected