Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.89MB] [CPU: ▼314.56ms] Passed 4 tests
Server-side resources used by HTML Mode Locker
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.02 | 61.59 ▼1.05 |
Dashboard /wp-admin | 3.47 ▲0.07 | 40.58 ▼0.31 |
Posts /wp-admin/edit.php | 3.70 ▲0.06 | 43.23 ▲4.63 |
Add New Post /wp-admin/post-new.php | 3.28 ▼3.69 | 28.05 ▼1,254.39 |
Media Library /wp-admin/upload.php | 3.35 ▲0.05 | 32.96 ▼2.49 |
Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for HTML Mode Locker
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,854 ▲100 | 15.98 ▲0.75 | 5.78 ▼1.45 | 2.21 ▼0.82 |
Dashboard /wp-admin | 2,957 ▲99 | 6.26 ▲0.07 | 135.45 ▼7.26 | 184.75 ▼46.18 |
Posts /wp-admin/edit.php | 2,739 ▲54 | 3.34 ▲0.10 | 75.61 ▲9.33 | 151.65 ▲5.89 |
Add New Post /wp-admin/post-new.php | 1,685 ▼5 | 16.15 ▼5.11 | 499.65 ▲35.10 | 181.50 ▲1.53 |
Media Library /wp-admin/upload.php | 1,767 ▲72 | 5.67 ▲0.17 | 167.61 ▼4.88 | 229.19 ▲42.88 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully
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 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/html-mode-locker/html-mode-locker.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/html-mode-locker/Class_Pointers.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Screenshots: These screenshots do not have images: #1 (HTML Mode Locker settings under Settings => Writing.), #2 (HTML Mode Locker meta box in the post editor.)
html-mode-locker/html-mode-locker.php Passed 13 tests
The entry point to "HTML Mode Locker" version 0.5 is a PHP file that has certain tags in its header comment area
90 characters long description:
Adds and option to lock post editor in HTML Mode on selected post types on per-item basis.
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
There were no executable files found in this plugin249 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 60 | 32 | 249 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 8 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin