Benchmarks
Plugin footprint 83% from 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.08MB] [CPU: ▲7.61ms] Passed 4 tests
An overview of server-side resources used by HTML Editor Syntax Highlighter
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 39.15 ▼0.93 |
Dashboard /wp-admin | 3.39 ▲0.05 | 59.43 ▼1.41 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 60.21 ▲17.06 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 106.42 ▲15.91 |
Media Library /wp-admin/upload.php | 3.31 ▲0.09 | 49.86 ▲16.85 |
Server storage [IO: ▲0.60MB] [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: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for HTML Editor Syntax Highlighter
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲29 | 13.32 ▼1.07 | 4.60 ▲2.69 | 48.12 ▲3.46 |
Dashboard /wp-admin | 2,206 ▲14 | 4.81 ▼0.12 | 107.46 ▼1.23 | 43.70 ▲4.13 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.00 ▼0.01 | 40.70 ▲5.23 | 35.89 ▼3.95 |
Add New Post /wp-admin/post-new.php | 2,269 ▲755 | 18.55 ▲0.94 | 670.42 ▼25.59 | 48.55 ▼5.33 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.19 ▼0.02 | 95.00 ▼6.30 | 43.79 ▼1.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/html-editor-syntax-highlighter/html-editor-syntax-highlighter.php
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: Add descriptions for screenshots #6, #7 in html-editor-syntax-highlighter/assets to your readme.txt
- Tags: Please delete some tags, you are using 17 tag instead of maximum 10
html-editor-syntax-highlighter/html-editor-syntax-highlighter.php Passed 13 tests
The main file in "HTML Editor Syntax Highlighter" v. 2.4.4 serves as a complement to information provided in readme.txt and as the entry point to the plugin
77 characters long description:
Add syntax highlighting to the all WordPress code editors using Codemirror.js
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
Success! There were no dangerous files found in this plugin6,788 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 1 | 1,867 | 0 | 6,322 |
PHP | 1 | 42 | 63 | 465 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 29.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 3.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 41.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 58.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 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
There were not PNG files found in your plugin