Benchmarks
Plugin footprint 83% 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: ▲0.30MB] [CPU: ▲1.65ms] Passed 4 tests
Analyzing server-side resources used by CB Visual Shortcode
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.29 | 42.20 ▼1.89 |
Dashboard /wp-admin | 3.61 ▲0.31 | 48.88 ▼0.50 |
Posts /wp-admin/edit.php | 3.66 ▲0.31 | 47.53 ▲6.02 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.36 | 1,092.92 ▲986.84 |
Media Library /wp-admin/upload.php | 3.53 ▲0.31 | 38.19 ▲2.96 |
Server storage [IO: ▲1.40MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 73 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
CBVSInstaller |
Browser metrics Passed 4 tests
An overview of browser requirements for CB Visual Shortcode
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 14.82 ▲0.46 | 1.74 ▲0.07 | 42.92 ▼9.67 |
Dashboard /wp-admin | 2,203 ▲15 | 5.83 ▲0.95 | 94.94 ▼22.37 | 38.10 ▼11.58 |
Posts /wp-admin/edit.php | 2,089 ▲3 | 2.05 ▲0.05 | 37.71 ▼3.20 | 33.35 ▼2.62 |
Add New Post /wp-admin/post-new.php | 6,506 ▲4,967 | 20.09 ▲1.77 | 1,002.69 ▲325.65 | 45.48 ▼19.69 |
Media Library /wp-admin/upload.php | 1,388 ▲3 | 4.16 ▼0.05 | 96.89 ▼8.92 | 41.44 ▼0.90 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- CBVSInstaller
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following items
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'CBVSCodeFile' not found in wp-content/plugins/cb-visual-shortcode/vendor/CBPoint/VSFramework/Object.abstract.php:6
- > PHP Fatal error
Uncaught Error: Class 'CBVSCodeFile' not found in wp-content/plugins/cb-visual-shortcode/vendor/CBPoint/VSFramework/StatedObjectStorage.abstract.php:6
- > PHP Fatal error
Uncaught Error: Class 'CBVSCodeFile' not found in wp-content/plugins/cb-visual-shortcode/vendor/CBPoint/VSFramework/EventArgs.class.php:6
- > PHP Fatal error
Uncaught Error: Class 'CBVSCodeFile' not found in wp-content/plugins/cb-visual-shortcode/vendor/CBPoint/VSFramework/StatedObjectStorage.interface.php:6
- > PHP Fatal error
Uncaught Error: Class 'CBVSCodeFile' not found in wp-content/plugins/cb-visual-shortcode/vendor/CBPoint/VSFramework/Events.class.php:6
- > PHP Fatal error
Uncaught Error: Class 'CBVSCodeFile' not found in wp-content/plugins/cb-visual-shortcode/Config/Config.php:6
- > PHP Fatal error
Uncaught Error: Class 'CBVSCodeFile' not found in wp-content/plugins/cb-visual-shortcode/vendor/CBPoint/VSFramework/StatedObjectWPOptionStorage.class.php:6
- > PHP Fatal error
Uncaught Error: Class 'CBVSCodeFile' not found in wp-content/plugins/cb-visual-shortcode/vendor/CBPoint/VSFramework/StatedObjectCustomStorage.class.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
10 plugin tags: post, visual, content, custom post, shortcode...
cb-visual-shortcode/cb-visual-shortcode.php Passed 13 tests
The main PHP script in "CB Visual Shortcode" version 1.0.0 is automatically included on every request by WordPress
42 characters long description:
Modify Shortcode attributes using web form
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
No dangerous file extensions were detected26,075 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 5,359 | 4,265 | 21,065 |
CSS | 8 | 97 | 125 | 2,499 |
PHP | 31 | 767 | 1,338 | 1,980 |
HTML | 1 | 96 | 16 | 447 |
JSON | 3 | 1 | 0 | 84 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 7.86 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 54.00 |
Average method complexity | 1.90 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 20 | |
▷ Abstract classes | 6 | 30.00% |
▷ Concrete classes | 14 | 70.00% |
▷ Final classes | 2 | 14.29% |
Methods | 163 | |
▷ Static methods | 22 | 13.50% |
▷ Public methods | 143 | 87.73% |
▷ Protected methods | 16 | 9.82% |
▷ Private methods | 4 | 2.45% |
Functions | 2 | |
▷ Named functions | 1 | 50.00% |
▷ Anonymous functions | 1 | 50.00% |
Constants | 27 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 27 | 100.00% |
▷ Public constants | 27 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
15 PNG files occupy 0.06MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
Media/Styles/jQuery-UI/images/ui-icons_222222_256x240.png | 6.76KB | 4.17KB | ▼ 38.24% |
Media/Styles/jQuery-UI/images/ui-icons_555555_256x240.png | 6.82KB | 4.17KB | ▼ 38.82% |
Media/Styles/jQuery-UI/images/ui-bg_glass_95_fef1ec_1x400.png | 0.32KB | 0.15KB | ▼ 54.82% |
Media/Styles/jQuery-UI/images/ui-icons_444444_256x240.png | 6.83KB | 4.17KB | ▼ 38.86% |
Media/Styles/jQuery-UI/images/ui-icons_2e83ff_256x240.png | 4.44KB | 4.17KB | ▼ 6.02% |