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 successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.47MB] [CPU: ▼18.59ms] Passed 4 tests
This is a short check of server-side resources used by Urvanov Syntax Highlighter
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.87 ▲0.41 | 52.70 ▲13.22 |
Dashboard /wp-admin | 3.52 ▲0.22 | 45.06 ▼4.97 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 50.09 ▲1.23 |
Add New Post /wp-admin/post-new.php | 3.33 ▼2.56 | 35.75 ▼71.56 |
Media Library /wp-admin/upload.php | 3.45 ▲0.22 | 37.34 ▲0.96 |
Crayon /wp-admin/options-general.php?page=urvanov_syntax_highlighter_settings | 4.15 | 87.70 |
Server storage [IO: ▲4.50MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 586 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
urvanov_syntax_highlighter_posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
urvanov_syntax_highlighter_options |
urvanov_syntax_highlighter_legacy_posts |
Browser metrics Passed 4 tests
Urvanov Syntax Highlighter: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,904 ▲143 | 13.52 ▼0.76 | 8.90 ▲7.36 | 35.87 ▼5.92 |
Dashboard /wp-admin | 2,199 ▲19 | 5.55 ▼0.14 | 80.31 ▼8.08 | 37.49 ▼1.44 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.02 ▲0.04 | 39.85 ▲3.08 | 34.16 ▼1.61 |
Add New Post /wp-admin/post-new.php | 6,250 ▲4,715 | 20.65 ▲2.31 | 969.99 ▲319.51 | 38.14 ▼32.87 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.21 ▲0.11 | 94.22 ▼15.09 | 41.32 ▼3.13 |
Crayon /wp-admin/options-general.php?page=urvanov_syntax_highlighter_settings | 2,705 | 2.85 | 70.14 | 77.20 |
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
The following items require your attention
- This plugin did not uninstall successfully, leaving 9 options in the database
- db_upgraded
- can_compress_scripts
- urvanov_syntax_highlighter_legacy_posts
- widget_recent-posts
- widget_theysaidso_widget
- urvanov_syntax_highlighter_posts
- theysaidso_admin_options
- widget_recent-comments
- urvanov_syntax_highlighter_options
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
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
require_once(): Failed opening required 'URVANOV_SYNTAX_HIGHLIGHTER_ROOT_PATHclass-urvanov-syntax-highlighter-settings.php' (include_path='.:/usr/share/php') in wp-content/plugins/urvanov-syntax-highlighter/util/tag-editor/class-urvanov-syntax-highlighter-tag-editor-wp.php on line 3
- > PHP Warning
Use of undefined constant URVANOV_SYNTAX_HIGHLIGHTER_ROOT_PATH - assumed 'URVANOV_SYNTAX_HIGHLIGHTER_ROOT_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/urvanov-syntax-highlighter/util/tag-editor/class-urvanov-syntax-highlighter-tag-editor-wp.php on line 3
- > PHP Warning
require_once(URVANOV_SYNTAX_HIGHLIGHTER_ROOT_PATHclass-urvanov-syntax-highlighter-settings.php): failed to open stream: No such file or directory in wp-content/plugins/urvanov-syntax-highlighter/util/tag-editor/class-urvanov-syntax-highlighter-tag-editor-wp.php on line 3
- > PHP Fatal error
require_once(): Failed opening required 'URVANOV_SYNTAX_HIGHLIGHTER_ROOT_PATHclass-urvanov-syntax-highlighter-settings.php' (include_path='.:/usr/share/php') in wp-content/plugins/urvanov-syntax-highlighter/util/class-urvanov-syntax-highlighter-log.php on line 2
- > PHP Warning
Use of undefined constant URVANOV_SYNTAX_HIGHLIGHTER_ROOT_PATH - assumed 'URVANOV_SYNTAX_HIGHLIGHTER_ROOT_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/urvanov-syntax-highlighter/util/class-urvanov-syntax-highlighter-log.php on line 2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/urvanov-syntax-highlighter/class-urvanov-syntax-highlighter-plugin.php:1393
- > PHP Warning
require_once(URVANOV_SYNTAX_HIGHLIGHTER_ROOT_PATHclass-urvanov-syntax-highlighter-settings.php): failed to open stream: No such file or directory in wp-content/plugins/urvanov-syntax-highlighter/util/class-urvanov-syntax-highlighter-log.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Classic theme.), #2 (Twilight theme.), #3 (Mixed Language Highlighting.), #4 (Tag Editor.), #5 (Theme Editor.)
urvanov-syntax-highlighter/class-urvanov-syntax-highlighter-plugin.php 92% from 13 tests
The main PHP script in "Urvanov Syntax Highlighter" version 2.8.34 is automatically included on every request by WordPress
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("urvanov-syntax-highlighter.php" instead of "class-urvanov-syntax-highlighter-plugin.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
Good job! No executable or dangerous file extensions detected40,574 lines of code in 148 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 22 | 5,033 | 8,881 | 11,444 |
CSS | 83 | 317 | 517 | 11,359 |
JavaScript | 17 | 1,254 | 788 | 8,562 |
PHP | 16 | 948 | 1,007 | 6,561 |
SVG | 8 | 0 | 1 | 2,452 |
Markdown | 2 | 85 | 0 | 196 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 30.08 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 176.00 |
Average method complexity | 3.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 92.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 37 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 37 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 456 | |
▷ Static methods | 283 | 62.06% |
▷ Public methods | 425 | 93.20% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 31 | 6.80% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 242 | |
▷ Global constants | 81 | 33.47% |
▷ Class constants | 161 | 66.53% |
▷ Public constants | 161 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
41 PNG files occupy 0.52MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/images/urvanov_syntax_highlighter_tinymce.png | 2.18KB | 1.00KB | ▼ 54.05% |
js/jquery-colorpicker/images/map-pointer.png | 0.34KB | 0.25KB | ▼ 26.45% |
screenshots/screenshot-3.png | 90.40KB | 31.87KB | ▼ 64.75% |
js/jquery-colorpicker/images/bar-pointer.png | 0.19KB | 0.13KB | ▼ 34.34% |
screenshots/screenshot-5.png | 72.91KB | 21.63KB | ▼ 70.33% |