Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.10MB] [CPU: ▼298.46ms] Passed 4 tests
A check of server-side resources used by WPZOOM Shortcodes
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.69 ▲0.18 | 53.68 ▲0.83 |
Dashboard /wp-admin | 3.54 ▲0.13 | 34.09 ▼6.97 |
Posts /wp-admin/edit.php | 3.76 ▲0.12 | 42.16 ▲5.51 |
Add New Post /wp-admin/post-new.php | 7.01 ▲0.03 | 97.29 ▼1,185.16 |
Media Library /wp-admin/upload.php | 3.41 ▲0.11 | 27.02 ▼2.52 |
Server storage [IO: ▲1.16MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 73 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by WPZOOM Shortcodes
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,917 ▲163 | 16.37 ▲0.37 | 11.00 ▲5.29 | 2.55 ▼0.25 |
Dashboard /wp-admin | 2,897 ▲36 | 6.07 ▼0.10 | 119.30 ▼15.45 | 156.14 ▼2.96 |
Posts /wp-admin/edit.php | 2,697 ▲12 | 3.26 ▲0.03 | 66.83 ▲4.18 | 144.39 ▲9.11 |
Add New Post /wp-admin/post-new.php | 1,665 ▲4 | 20.35 ▲3.85 | 476.19 ▲47.47 | 157.23 ▼1.55 |
Media Library /wp-admin/upload.php | 1,704 ▲9 | 5.53 ▲0.04 | 141.38 ▲4.16 | 186.21 ▼8.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Uninstall script ran successfully
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Everything seems fine, however this is by no means an exhaustive test
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)
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: icons, columns, buttons, box, wpzoom...
wpzoom-shortcodes/wpzoom-shortcodes.php 92% from 13 tests
The main PHP file in "WPZOOM Shortcodes" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Domain Path: The domain path folder was not found ("/languages")
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
Everything looks great! No dangerous files found in this plugin3,864 lines of code in 30 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 18 | 359 | 105 | 1,925 |
PHP | 6 | 256 | 116 | 683 |
SVG | 1 | 0 | 0 | 655 |
CSS | 5 | 51 | 51 | 601 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 5 | 38.46% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 45 | |
▷ Named functions | 45 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
31 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/colorpicker/colorpicker_overlay.png | 10.11KB | 8.24KB | ▼ 18.50% |
assets/images/shortcodes/bullet.png | 0.17KB | 0.17KB | 0.00% |
assets/images/colorpicker/colorpicker_rgb_r.png | 1.04KB | 0.77KB | ▼ 26.17% |
assets/images/shortcodes/red-x.png | 0.55KB | 0.67KB | 0.00% |
assets/images/select.png | 0.20KB | 0.27KB | 0.00% |