Benchmarks
Plugin footprint 83% from 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.26MB] [CPU: ▼15.05ms] Passed 4 tests
A check of server-side resources used by Preserved HTML Editor Markup Plus
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 47.94 ▼5.08 |
Dashboard /wp-admin | 3.31 ▲0.01 | 56.79 ▲7.05 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 52.21 ▼0.43 |
Add New Post /wp-admin/post-new.php | 4.83 ▼1.06 | 80.39 ▼58.12 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 46.02 ▲3.45 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
emc2pm_activate_date |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by Preserved HTML Editor Markup Plus
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,811 ▲79 | 14.77 ▲1.27 | 2.27 ▼13.14 | 160.15 ▲27.80 |
Dashboard /wp-admin | 2,202 ▲26 | 6.04 ▲0.17 | 223.33 ▲27.50 | 148.05 ▲70.14 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.04 ▼0.01 | 64.26 ▼30.15 | 100.45 ▼20.09 |
Add New Post /wp-admin/post-new.php | 1,411 ▼96 | 17.37 ▼4.60 | 855.93 ▲61.40 | 161.41 ▲5.27 |
Media Library /wp-admin/upload.php | 1,381 ▼4 | 4.16 ▼0.08 | 374.67 ▲164.03 | 234.90 ▲137.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_recent-comments
- emc2pm_activate_date
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
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
Please fix the following items
- 1× 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/preserved-html-editor-markup-plus/preserved_markup_plus.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Screenshot #1 (No screenshots) image required
preserved-html-editor-markup-plus/preserved_markup_plus.php 92% from 13 tests
The principal PHP file in "Preserved HTML Editor Markup Plus" v. 1.5.4 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("preserved-html-editor-markup-plus.php" instead of "preserved_markup_plus.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin549 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 81 | 98 | 272 |
JavaScript | 1 | 52 | 64 | 218 |
Bourne Shell | 1 | 19 | 8 | 59 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 32.00 |
▷ Minimum class complexity | 32.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.72 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 18 | |
▷ Static methods | 18 | 100.00% |
▷ Public methods | 18 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected