Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.62MB] [CPU: ▼295.86ms] Passed 4 tests
This is a short check of server-side resources used by DV Shortcode Whitelist
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.92 ▲0.41 | 61.23 ▲11.22 |
Dashboard /wp-admin | 4.15 ▲0.74 | 36.23 ▲3.57 |
Posts /wp-admin/edit.php | 4.35 ▲0.70 | 40.42 ▲3.79 |
Add New Post /wp-admin/post-new.php | 7.60 ▲0.63 | 95.96 ▼1,191.89 |
Media Library /wp-admin/upload.php | 4.03 ▲0.73 | 27.05 ▲1.11 |
DV Shortcode Whitelist Settings /wp-admin/plugins.php?page=dvscwl_options | 4.55 | 29.55 |
Server storage [IO: ▲0.94MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 118 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by DV Shortcode Whitelist
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,781 ▲24 | 16.06 ▲0.45 | 7.46 ▲1.19 | 2.78 ▼0.17 |
Dashboard /wp-admin | 2,906 ▲45 | 6.11 ▼0.05 | 120.97 ▼14.71 | 162.97 ▲2.20 |
Posts /wp-admin/edit.php | 2,706 ▲15 | 3.27 ▲0.03 | 67.81 ▲5.28 | 144.69 ▲2.49 |
Add New Post /wp-admin/post-new.php | 1,683 ▼28 | 18.49 ▼2.27 | 395.89 ▼63.67 | 162.32 ▲6.45 |
Media Library /wp-admin/upload.php | 1,716 ▲21 | 5.57 ▲0.04 | 140.64 ▼5.47 | 186.31 ▼0.32 |
DV Shortcode Whitelist Settings /wp-admin/plugins.php?page=dvscwl_options | 1,704 | 2.79 | 63.48 | 112.22 |
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 | This is a shallow check for server-side errors
Everything seems fine, however 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
- 37× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Multi_Base' not found in wp-content/plugins/dv-shortcode-whitelist/cmb2/includes/types/CMB2_Type_Select.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Picker_Base' not found in wp-content/plugins/dv-shortcode-whitelist/cmb2/includes/types/CMB2_Type_Text_Date.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Taxonomy_Radio' not found in wp-content/plugins/dv-shortcode-whitelist/cmb2/includes/types/CMB2_Type_Taxonomy_Radio_Hierarchical.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/dv-shortcode-whitelist/cmb2/includes/types/CMB2_Type_File_List.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_REST_Controller' not found in wp-content/plugins/dv-shortcode-whitelist/cmb2/includes/rest-api/CMB2_REST_Controller_Boxes.php:17
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Textarea' not found in wp-content/plugins/dv-shortcode-whitelist/cmb2/includes/types/CMB2_Type_Textarea_Code.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Radio' not found in wp-content/plugins/dv-shortcode-whitelist/cmb2/includes/types/CMB2_Type_Multicheck.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dv-shortcode-whitelist/cmb2/init.php:72
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_File_Base' not found in wp-content/plugins/dv-shortcode-whitelist/cmb2/includes/types/CMB2_Type_File.php:13
- > PHP Fatal error
Uncaught Error: Class 'CMB2_Type_Text' not found in wp-content/plugins/dv-shortcode-whitelist/cmb2/includes/types/CMB2_Type_Picker_Base.php:13
- > PHP Fatal error
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots need descriptions #1, #2 in dv-shortcode-whitelist/assets to your readme.txt
dv-shortcode-whitelist/dv-shortcode-whitelist.php 92% from 13 tests
The main PHP script in "DV Shortcode Whitelist" version 1.0 is automatically included on every request by WordPress
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 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin14,294 lines of code in 93 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 55 | 2,017 | 5,686 | 6,946 |
CSS | 14 | 1,164 | 1,148 | 4,646 |
Sass | 16 | 300 | 25 | 1,378 |
JavaScript | 8 | 320 | 409 | 1,324 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 18.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 181.00 |
Average method complexity | 3.24 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 28.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 66 | |
▷ Abstract classes | 8 | 12.12% |
▷ Concrete classes | 58 | 87.88% |
▷ Final classes | 0 | 0.00% |
Methods | 518 | |
▷ Static methods | 86 | 16.60% |
▷ Public methods | 426 | 82.24% |
▷ Protected methods | 89 | 17.18% |
▷ Private methods | 3 | 0.58% |
Functions | 28 | |
▷ Named functions | 28 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 3 | 33.33% |
▷ Class constants | 6 | 66.67% |
▷ Public constants | 6 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
14 PNG files occupy 0.02MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
cmb2/images/ui-bg_flat_0_aaaaaa_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
cmb2/images/ui-bg_glass_75_dadada_1x400.png | 0.11KB | 0.16KB | 0.00% |
cmb2/images/ui-icons_2e83ff_256x240.png | 4.27KB | 4.11KB | ▼ 3.78% |
cmb2/images/ui-icons_888888_256x240.png | 5.23KB | 4.11KB | ▼ 21.49% |
cmb2/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |