Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/os-html5-shortcodes/includes/admin/oshtml5-widget.php+91
Function create_function() is deprecated
Server metrics [RAM: ▼1.81MB] [CPU: ▼334.05ms] Passed 4 tests
A check of server-side resources used by OS HTML5 Shortcodes
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.82 ▼0.90 | 6.79 ▼14.78 |
Dashboard /wp-admin | 1.84 ▼1.21 | 6.11 ▼50.39 |
Posts /wp-admin/edit.php | 1.84 ▼1.27 | 9.07 ▼38.87 |
Add New Post /wp-admin/post-new.php | 1.84 ▼3.59 | 6.93 ▼1,209.64 |
Media Library /wp-admin/upload.php | 1.84 ▼1.17 | 6.82 ▼37.29 |
Add New /wp-admin/post-new.php?post_type=os-html5 | 1.84 | 7.74 |
About /wp-admin/edit.php?post_type=os-html5&page=oshtml5-about-developer | 1.84 | 6.10 |
OS HTML5 /wp-admin/edit.php?post_type=os-html5 | 1.84 | 6.66 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_oshtml5_widget |
Browser metrics Passed 4 tests
A check of browser resources used by OS HTML5 Shortcodes
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,719 ▲137 | 15.80 ▲0.35 | 9.26 ▼1.44 | 42.24 ▼5.74 |
Dashboard /wp-admin | 2,972 ▲122 | 5.90 ▲0.05 | 144.70 ▼5.39 | 104.07 ▲8.30 |
Posts /wp-admin/edit.php | 2,748 ▲42 | 2.70 ▼0.12 | 67.57 ▲0.88 | 91.44 ▲2.37 |
Add New Post /wp-admin/post-new.php | 1,684 ▲28 | 18.30 ▲0.03 | 388.98 ▼32.02 | 108.83 ▼14.91 |
Media Library /wp-admin/upload.php | 1,814 ▲42 | 5.02 ▼0.01 | 165.44 ▼4.10 | 117.53 ▼3.37 |
Add New /wp-admin/post-new.php?post_type=os-html5 | 2,943 | 9.21 | 228.25 | 138.35 |
About /wp-admin/edit.php?post_type=os-html5&page=oshtml5-about-developer | 1,342 | 2.09 | 61.44 | 59.29 |
OS HTML5 /wp-admin/edit.php?post_type=os-html5 | 1,414 | 2.62 | 69.03 | 65.34 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/os-html5-shortcodes/includes/admin/oshtml5-widget.php+91
Function create_function() is deprecated
- This plugin does not fully uninstall, leaving 1 option in the database
- widget_oshtml5_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=os-html5
- > POST request to /wp-admin/admin-ajax.php
- > Deprecated in wp-content/plugins/os-html5-shortcodes/includes/admin/oshtml5-widget.php+91
Function create_function() is deprecated
- 5 occurences, only the last one shown
- > GET request to /wp-admin/edit.php?post_type=os-html5
- > POST request to /wp-admin/admin-ajax.php
- > User deprecated in wp-includes/functions.php+5304
The called constructor method for WP_Widget in osHtml5Widget is deprecated since version 4.3.0! Use __construct() instead.
- > GET request to /wp-admin/post-new.php?post_type=os-html5
- > User notice in wp-includes/functions.php+5663
wpdb::prepare was called incorrectly. The query argument of wpdb::prepare() must have a placeholder. Please see Debugging in WordPress for more information. (This message was added in version 3.9.0.)
- > GET request to /wp-admin/post-new.php?post_type=os-html5
- > User notice in wp-includes/functions.php+5663
wpdb::prepare was called incorrectly. The query does not contain the correct number of placeholders (0) for the number of arguments passed (1). Please see Debugging in WordPress for more information. (This message was added in version 4.8.3.)
- > GET request to /wp-admin/post-new.php?post_type=os-html5
- > Warning in wp-content/plugins/os-html5-shortcodes/includes/admin/oshtml5-editor.php+12
Use of undefined constant wp_die - assumed 'wp_die' (this will throw an Error in a future version of PHP)
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
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Undefined variable: post_id in wp-content/plugins/os-html5-shortcodes/includes/admin/meta-boxes/views/oshtml5.shortcode.php on line 2
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/os-html5-shortcodes/includes/admin/oshtml5-widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/os-html5-shortcodes/includes/admin/oshtml5-tinymce.php:41
- > PHP Fatal error
Uncaught Error: Class 'osHTML5TinyMCE' not found in wp-content/plugins/os-html5-shortcodes/includes/admin/oshtml5-editor.php:6
- > PHP Notice
Undefined variable: post_id in wp-content/plugins/os-html5-shortcodes/includes/admin/meta-boxes/views/oshtml5.shortcode.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/os-html5-shortcodes/includes/admin/meta-boxes/views/oshtml5.shortcode.php:8
- > PHP Notice
Undefined variable: post_id in wp-content/plugins/os-html5-shortcodes/includes/admin/meta-boxes/views/oshtml5.shortcode.php on line 8
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 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
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (OS HTML5 Shortcodes admin listing), #2 (OS HTML5 Shortcodes widget area)
os-html5-shortcodes/os-html5-shortcodes.php Passed 13 tests
The main file in "OS HTML5 Shortcodes" v. 1.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
134 characters long description:
Include HTML codes uch as ad codes, javascript, video embedding, etc to your pages, posts or custom post type easily using shortcodes.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin453 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 167 | 239 | 450 |
CSS | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.17 |
Average class complexity | 4.17 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 1.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 1 | 16.67% |
Methods | 38 | |
▷ Static methods | 3 | 7.89% |
▷ Public methods | 36 | 94.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 5.26% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.15MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/category.png | 0.48KB | 0.34KB | ▼ 28.63% |
images/social.png | 1.61KB | 1.12KB | ▼ 30.45% |
screenshot-1.png | 54.73KB | 21.20KB | ▼ 61.26% |
screenshot-2.png | 44.63KB | 17.83KB | ▼ 60.04% |
screenshot-3.png | 48.61KB | 20.92KB | ▼ 56.96% |