Benchmarks
Plugin footprint 57% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/42u-html5-upgrade/inc/FTU.php+430
Methods with the same name as their class will not be constructors in a future version of PHP; WP_Widget_Taxonomy_Terms has a deprecated constructor
Server metrics [RAM: ▼2.18MB] [CPU: ▼354.10ms] Passed 4 tests
Server-side resources used by 42U HTML5 Upgrade
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.13 ▼0.99 | 5.19 ▼18.61 |
Dashboard /wp-admin | 2.15 ▼1.26 | 4.95 ▼30.58 |
Posts /wp-admin/edit.php | 2.15 ▼1.49 | 5.48 ▼33.80 |
Add New Post /wp-admin/post-new.php | 2.15 ▼4.82 | 5.05 ▼1,331.57 |
Media Library /wp-admin/upload.php | 2.15 ▼1.15 | 5.19 ▼20.44 |
42 Umbrellas /wp-admin/admin.php?page=42-Umbrellas | 2.15 | 4.98 |
HTML5 Options /wp-admin/admin.php?page=42u-html5-upgrade/42UHTML5.php | 2.15 | 4.32 |
Server storage [IO: ▲0.58MB] [DB: ▲0.00MB] 67% from 3 tests
Input-output and database impact of this plugin
Please fix the following
- Illegal file modification detected: 3 files (5.58KB) outside of "wp-content/plugins/42u-html5-upgrade/" and "wp-content/uploads/"
- (new file) wp-includes/js/tinymce/plugins/visualblocks/editor_plugin.js
- (new file) wp-includes/js/tinymce/plugins/visualblocks/css/visualblocks.css
- (new file) wp-includes/js/tinymce/plugins/visualblocks/editor_plugin_src.js
Filesystem: 20 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for 42U HTML5 Upgrade
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,116 ▲362 | 16.25 ▲0.46 | 10.26 ▲3.98 | 17.82 ▲15.11 |
Dashboard /wp-admin | 3,072 ▲218 | 6.94 ▲0.72 | 124.83 ▼15.93 | 216.41 ▲48.53 |
Posts /wp-admin/edit.php | 2,866 ▲209 | 3.02 ▼0.23 | 74.20 ▲10.02 | 144.37 ▼5.02 |
Add New Post /wp-admin/post-new.php | 1,785 ▲124 | 21.11 ▲3.98 | 441.96 ▲3.89 | 189.43 ▼16.66 |
Media Library /wp-admin/upload.php | 1,873 ▲175 | 5.98 ▲0.55 | 157.67 ▲19.43 | 223.84 ▲40.44 |
42 Umbrellas /wp-admin/admin.php?page=42-Umbrellas | 1,215 | 2.83 | 64.13 | 114.51 |
HTML5 Options /wp-admin/admin.php?page=42u-html5-upgrade/42UHTML5.php | 1,213 | 2.87 | 60.69 | 120.99 |
Uninstaller [IO: ▲0.01MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/42u-html5-upgrade/inc/FTU.php+430
Methods with the same name as their class will not be constructors in a future version of PHP; WP_Widget_Taxonomy_Terms has a deprecated constructor
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=42u-html5-upgrade/42UHTML5.php
- > Deprecated in wp-content/plugins/42u-html5-upgrade/inc/FTU.php+430
Methods with the same name as their class will not be constructors in a future version of PHP; WP_Widget_Taxonomy_Terms has a deprecated constructor
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=42u-html5-upgrade/42UHTML5.php
- > Warning in wp-content/plugins/42u-html5-upgrade/inc/FTU.php+72
Use of undefined constant FTU_VERSION - assumed 'FTU_VERSION' (this will throw an Error in a future version of PHP)
- 6 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=42u-html5-upgrade/42UHTML5.php
- > Notice in wp-content/plugins/42u-html5-upgrade/42UHTML5.php+210
Trying to access array offset on value of type bool
SRP 0% 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
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/42u-html5-upgrade/inc/splash.php
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/42u-html5-upgrade/inc/FTU.php:38
- > PHP Warning
Use of undefined constant FTU_VERSION - assumed 'FTU_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/42u-html5-upgrade/inc/FTU.php on line 72
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/42u-html5-upgrade/inc/FTU.php:38
- > PHP Warning
Use of undefined constant FTU_VERSION - assumed 'FTU_VERSION' (this will throw an Error in a future version of PHP) in wp-content/plugins/42u-html5-upgrade/inc/FTU.php on line 72
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: html5
42u-html5-upgrade/42UHTML5.php 85% from 13 tests
This is the main PHP file of "42U HTML5 Upgrade" version 1.1.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 147 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("42u-html5-upgrade.php" instead of "42UHTML5.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin824 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 207 | 141 | 756 |
JavaScript | 3 | 10 | 14 | 44 |
CSS | 3 | 2 | 1 | 24 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 11.71 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 45 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 44 | 97.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 2.22% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
9 PNG files occupy 0.49MB with 0.16MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/images/42U_adminmenu16-sprite_2x.png | 2.00KB | 1.51KB | ▼ 24.19% |
images/HTML5_adminmenu16-sprite_2x.png | 1.89KB | 1.20KB | ▼ 36.21% |
images/HTML5_adminmenu16-sprite.png | 0.89KB | 0.68KB | ▼ 23.68% |
inc/images/42U_adminpage32_2x.png | 3.26KB | 2.25KB | ▼ 30.80% |
images/HTML5_adminpage32_2x.png | 2.20KB | 1.21KB | ▼ 44.93% |