Benchmarks
Plugin footprint 47% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲2.09MB] [CPU: ▲9.18ms] 75% from 4 tests
A check of server-side resources used by Shortcode Directives
Please fix the following
- RAM: You should keep total memory usage under 10MB (currently 10.02MB on /wp-admin/tools.php?page=scd_settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.76 ▲1.30 | 45.20 ▲0.62 |
Dashboard /wp-admin | 5.65 ▲2.35 | 58.98 ▲6.66 |
Posts /wp-admin/edit.php | 5.76 ▲2.41 | 65.70 ▲16.31 |
Add New Post /wp-admin/post-new.php | 8.25 ▲2.36 | 110.62 ▲15.16 |
Media Library /wp-admin/upload.php | 5.57 ▲2.34 | 46.83 ▲14.27 |
Shortcode Directives /wp-admin/tools.php?page=scd_settings | 10.02 | 77.58 |
Server storage [IO: ▲1.77MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 323 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Shortcode Directives
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲94 | 13.21 ▼1.38 | 4.56 ▲2.50 | 43.71 ▼0.73 |
Dashboard /wp-admin | 2,210 ▲33 | 5.86 ▼0.03 | 111.67 ▼0.03 | 46.63 ▼8.70 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.02 ▼0.04 | 40.64 ▼0.15 | 35.35 ▼4.06 |
Add New Post /wp-admin/post-new.php | 1,537 ▲23 | 23.15 ▲5.55 | 662.74 ▲45.76 | 67.84 ▲14.36 |
Media Library /wp-admin/upload.php | 1,392 ▲10 | 4.20 ▼0.03 | 100.54 ▼2.69 | 43.11 ▼3.41 |
Shortcode Directives /wp-admin/tools.php?page=scd_settings | 1,452 | 2.35 | 40.31 | 69.83 |
Uninstaller [IO: ▲1.77MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following itemsThis plugin does not fully uninstall, leaving 7 options in the database
- The plugin did not uninstall gracefully
- > Compile error in wp-content/plugins/shortcode-directives/shortcode-directives.php+18
Cannot declare class ShortcodeDirectives_Registry_Base, because the name is already in use
- Uninstaller has failed for this plugin, leaving 323 files (1.77MB) in the plugin directory
- (new file) include/library/apf/custom-field-types/select2-custom-field-type/select2/LICENSE.md
- (new file) include/library/apf/admin-page-framework.php
- (new file) include/library/apf/custom-field-types/post_type_taxonomy_field-type/PostTypeTaxonomyCustomFieldType.php
- (new file) include/library/apf/custom-field-types/select2-custom-field-type/Select2CustomFieldType.php
- (new file) include/library/apf/admin-page-framework-include-class-list.php
- (new file) include/ShortcodeDirectives_Bootstrap.php
- (new file) include/class-list.php
- (new file) include/library/apf/custom-field-types/select2-custom-field-type/changelog.txt
- (new file) include/library/apf/custom-field-types/post_type_taxonomy_field-type/changelog.txt
- (new file) include/library/apf/LICENSE.txt
- ...
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- recovery_mode_email_last_sent
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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
Almost there! Just fix the following items
- 241× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'ShortcodeDirectives_AdminPage__FormSection_Base' not found in wp-content/plugins/shortcode-directives/include/main/admin/setting/data/ShortcodeDirectives_AdminPage__FormSection_DoReset.php:14
- > PHP Fatal error
Uncaught Error: Class 'ShortcodeDirectives_AdminPageFramework' not found in wp-content/plugins/shortcode-directives/include/library/apf/factory/network_admin_page/AdminPageFramework_NetworkAdmin.php:7
- > PHP Fatal error
Uncaught Error: Class 'ShortcodeDirectives_AdminPageFramework_FrameworkUtility' not found in wp-content/plugins/shortcode-directives/include/library/apf/factory/post_type/_model/AdminPageFramework_PostType_Model__SubMenuOrder.php:7
- > PHP Fatal error
Uncaught Error: Class 'ShortcodeDirectives_AdminPageFramework_Property_post_meta_box' not found in wp-content/plugins/shortcode-directives/include/library/apf/factory/taxonomy_field/_model/AdminPageFramework_Property_taxonomy_field.php:7
- > PHP Fatal error
Uncaught Error: Class 'ShortcodeDirectives_AdminPageFramework_FrameworkUtility' not found in wp-content/plugins/shortcode-directives/include/library/apf/factory/_common/_abstract/_model/AdminPageFramework_Factory_Model___Meta_Base.php:7
- > PHP Fatal error
Uncaught Error: Class 'ShortcodeDirectives_AdminPageFramework_Link_admin_page' not found in wp-content/plugins/shortcode-directives/include/library/apf/factory/network_admin_page/_controller/AdminPageFramework_Link_network_admin_page.php:7
- > PHP Fatal error
Uncaught Error: Class 'ShortcodeDirectives_AdminPage__FormSection_Base' not found in wp-content/plugins/shortcode-directives/include/main/admin/setting/data/ShortcodeDirectives_AdminPage__FormSection_Import.php:14
- > PHP Fatal error
Uncaught Error: Class 'ShortcodeDirectives_AdminPageFramework_Form_View___CSS_Base' not found in wp-content/plugins/shortcode-directives/include/library/apf/factory/_common/form/_view/css/AdminPageFramework_Form_View___CSS_FieldError.php:7
- > PHP Fatal error
Uncaught Error: Class 'ShortcodeDirectives_AdminPageFramework_PageLoadInfo_Base' not found in wp-content/plugins/shortcode-directives/include/library/apf/factory/admin_page/_view/AdminPageFramework_PageLoadInfo_admin_page.php:7
- > PHP Fatal error
Uncaught Error: Class 'ShortcodeDirectives_PluginUtility' not found in wp-content/plugins/shortcode-directives/include/main/admin/_abstract/ShortcodeDirectives_AdminPage__Element_Base.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: directives, posts, commands, tool, command...
shortcode-directives/shortcode-directives.php 77% from 13 tests
The entry point to "Shortcode Directives" version 1.0.0 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
- Domain Path: The domain path should be prefixed with a forward slash character ("/language")
- Text Domain: Please use dashes and lowercase characters for text domains
- Domain Path: You should use only dashes and lowercase characters for the domain path ("language")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected28,392 lines of code in 318 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 260 | 1,303 | 3,447 | 18,457 |
JavaScript | 52 | 2,437 | 659 | 9,232 |
CSS | 4 | 57 | 5 | 432 |
Markdown | 2 | 73 | 0 | 271 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 6.93 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 159.00 |
Average method complexity | 2.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 369 | |
▷ Abstract classes | 100 | 27.10% |
▷ Concrete classes | 269 | 72.90% |
▷ Final classes | 4 | 1.49% |
Methods | 1,855 | |
▷ Static methods | 259 | 13.96% |
▷ Public methods | 992 | 53.48% |
▷ Protected methods | 341 | 18.38% |
▷ Private methods | 522 | 28.14% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 27 | |
▷ Global constants | 1 | 3.70% |
▷ Class constants | 26 | 96.30% |
▷ Public constants | 26 | 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
There were not PNG files found in your plugin