Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.71MB] [CPU: ▼289.54ms] Passed 4 tests
Server-side resources used by Olevmedia Shortcodes
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.28 ▲0.77 | 60.78 ▲8.61 |
Dashboard /wp-admin | 4.12 ▲0.71 | 36.47 ▲3.25 |
Posts /wp-admin/edit.php | 4.34 ▲0.70 | 42.72 ▲6.08 |
Add New Post /wp-admin/post-new.php | 7.68 ▲0.68 | 96.70 ▼1,174.33 |
Media Library /wp-admin/upload.php | 4.05 ▲0.76 | 30.55 ▲6.85 |
Server storage [IO: ▲0.70MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 29 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for Olevmedia Shortcodes
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,950 ▲228 | 16.65 ▲1.05 | 11.39 ▲5.61 | 2.82 ▲0.60 |
Dashboard /wp-admin | 2,926 ▲72 | 6.81 ▲0.66 | 123.77 ▼10.12 | 171.86 ▲14.91 |
Posts /wp-admin/edit.php | 2,732 ▲41 | 3.54 ▲0.30 | 67.18 ▲6.01 | 157.69 ▲17.91 |
Add New Post /wp-admin/post-new.php | 1,735 ▲67 | 20.84 ▲1.89 | 445.50 ▲34.23 | 170.67 ▲20.31 |
Media Library /wp-admin/upload.php | 1,731 ▲30 | 5.94 ▲0.40 | 124.24 ▼23.48 | 187.12 ▲1.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The plugin uninstalled successfully, without leaving any zombie files or tables
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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/olevmedia-shortcodes/functions/workup-shortcodes.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/olevmedia-shortcodes/functions/interface-options.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/olevmedia-shortcodes/functions/workup-shortcodes.php:28
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/olevmedia-shortcodes/om-shortcodes.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/olevmedia-shortcodes/functions/interface-options.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/olevmedia-shortcodes/functions/button.php:233
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/olevmedia-shortcodes/functions/interface-shortcodes-generator.php:612
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/olevmedia-shortcodes/functions/js-strings-translation.php:18
- > 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)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
- Tags: Please delete some tags, you are using 26 tag instead of maximum 10
olevmedia-shortcodes/om-shortcodes.php 85% from 13 tests
Analyzing the main PHP file in "Olevmedia Shortcodes" version 1.1.9
The following require your attention:
- Main file name: The principal plugin file should be the same as the plugin slug ("olevmedia-shortcodes.php" instead of "om-shortcodes.php")
- Description: The description should be shorter than 140 characters (currently 142 characters long)
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 plugin7,482 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 926 | 663 | 5,015 |
CSS | 5 | 251 | 101 | 1,251 |
JavaScript | 4 | 135 | 5 | 450 |
SVG | 1 | 0 | 0 | 414 |
PO File | 1 | 156 | 174 | 352 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
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 | 163.50 |
▷ Minimum class complexity | 130.00 |
▷ Maximum class complexity | 197.00 |
Average method complexity | 4.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.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 | 85 | |
▷ Static methods | 1 | 1.18% |
▷ Public methods | 69 | 81.18% |
▷ Protected methods | 16 | 18.82% |
▷ Private methods | 0 | 0.00% |
Functions | 71 | |
▷ Named functions | 71 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 21 | |
▷ Global constants | 21 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/img/button-shortcodes.png | 1.12KB | 1.13KB | 0.00% |
assets/img/button-shortcodes4.png | 1.18KB | 0.26KB | ▼ 78.18% |