Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.10MB] [CPU: ▼136.44ms] Passed 4 tests
A check of server-side resources used by Syntax Highlighter for Post/Page HTML Editor
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.94 ▲0.10 | 36.02 ▲6.71 |
Dashboard /wp-admin | 3.16 ▲0.11 | 53.05 ▲8.36 |
Posts /wp-admin/edit.php | 3.27 ▲0.16 | 49.06 ▼3.75 |
Add New Post /wp-admin/post-new.php | 5.52 ▲0.09 | 95.94 ▼557.07 |
Media Library /wp-admin/upload.php | 3.11 ▲0.10 | 41.30 ▲9.40 |
Post / Page Editor /wp-admin/options-general.php?page=syntax-highlighter-for-postpage-html-editor | 3.21 | 33.85 |
Server storage [IO: ▲2.42MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 114 new files
Database: no new tables, 1 new option
New WordPress options |
---|
spacexchimp_p014_service_info |
Browser metrics Passed 4 tests
Syntax Highlighter for Post/Page HTML Editor: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,684 ▲47 | 15.80 ▼0.10 | 7.88 ▼2.38 | 49.71 ▲0.97 |
Dashboard /wp-admin | 2,972 ▲38 | 5.89 ▼0.05 | 142.02 ▼3.73 | 114.06 ▲5.58 |
Posts /wp-admin/edit.php | 2,744 ▲5 | 2.69 ▲0.01 | 64.33 ▼1.59 | 85.64 ▼6.30 |
Add New Post /wp-admin/post-new.php | 1,686 ▲186 | 16.25 ▼2.39 | 392.33 ▲8.83 | 105.67 ▼1.42 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.02 ▲0.01 | 164.47 ▲4.68 | 117.67 ▼13.84 |
Post / Page Editor /wp-admin/options-general.php?page=syntax-highlighter-for-postpage-html-editor | 3,693 | 3.63 | 100.78 | 121.29 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 1 option in the database
- spacexchimp_p014_service_info
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
Almost there! Just fix the following items
- 15× PHP files output text when accessed directly (only 10 are shown):
- > /wp-content/plugins/syntax-highlighter-for-postpage-html-editor/inc/php/sidebar.php
- > /wp-content/plugins/syntax-highlighter-for-postpage-html-editor/inc/php/inline-js.php
- > /wp-content/plugins/syntax-highlighter-for-postpage-html-editor/inc/php/messages.php
- > /wp-content/plugins/syntax-highlighter-for-postpage-html-editor/inc/php/tabs/faq.php
- > /wp-content/plugins/syntax-highlighter-for-postpage-html-editor/inc/php/page.php
- > /wp-content/plugins/syntax-highlighter-for-postpage-html-editor/inc/php/tabs/usage.php
- > /wp-content/plugins/syntax-highlighter-for-postpage-html-editor/inc/php/controls.php
- > /wp-content/plugins/syntax-highlighter-for-postpage-html-editor/inc/php/functional.php
- > /wp-content/plugins/syntax-highlighter-for-postpage-html-editor/inc/php/upgrade.php
- > /wp-content/plugins/syntax-highlighter-for-postpage-html-editor/inc/php/versioning.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: Too many tags (24 tag instead of maximum 10); only the first 5 tags are used in your directory listing
syntax-highlighter-for-postpage-html-editor/syntax-highlighter-for-postpage-html-editor.php Passed 13 tests
The principal PHP file in "Syntax Highlighter for Post/Page HTML Editor" v. 2.50 is loaded by WordPress automatically on each request
124 characters long description:
Replaces the defaults WordPress Post/Page HTML Editor with an enhanced editor with syntax highlighting, line numbering, etc.
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 plugin20,814 lines of code in 95 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 17 | 1,323 | 1,114 | 11,108 |
SVG | 2 | 1 | 0 | 2,677 |
CSS | 41 | 276 | 257 | 1,957 |
PO File | 5 | 733 | 751 | 1,634 |
Markdown | 3 | 865 | 0 | 1,298 |
PHP | 16 | 255 | 326 | 1,158 |
HTML | 10 | 138 | 1 | 935 |
JSON | 1 | 0 | 0 | 47 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.16 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 28 | |
▷ Named functions | 28 | 100.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
All PNG images should be compressed to minimize bandwidth usage for end users
2 compressed PNG files occupy 0.03MB
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
inc/img/spacexchimp-logo.png | 21.01KB | 14.98KB | ▼ 28.69% |
inc/img/thanks.png | 9.03KB | 9.47KB | 0.00% |