Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Notice in wp-content/plugins/wp-syntaxhighlighter/wp-syntaxhighlighter.php+478
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.30ms] Passed 4 tests
Analyzing server-side resources used by WP SyntaxHighlighter
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 39.55 ▼1.84 |
Dashboard /wp-admin | 3.35 ▲0.05 | 43.82 ▼9.42 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 46.13 ▲0.10 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 94.94 ▼2.05 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 35.15 ▲2.35 |
WP SyntaxHighlighter /wp-admin/options-general.php?page=wp-syntaxhighlighter-options | 3.22 | 28.50 |
Server storage [IO: ▲1.50MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 180 new files
Database: no new tables, 25 new options
New WordPress options |
---|
wp_sh_comment_hl_description_before |
recovery_mode_email_last_sent |
db_upgraded |
wp_sh_language3 |
wp_sh_updated |
wp_sh_addl_style |
wp_sh_bbpress_hl_stylesheet |
can_compress_scripts |
wp_sh_collapse_lable_text |
wp_sh_version |
... |
Browser metrics Passed 4 tests
A check of browser resources used by WP SyntaxHighlighter
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲64 | 13.33 ▼1.05 | 1.70 ▼0.35 | 43.94 ▼12.65 |
Dashboard /wp-admin | 2,218 ▲30 | 5.84 ▲0.93 | 104.96 ▼12.47 | 40.08 ▼3.07 |
Posts /wp-admin/edit.php | 2,103 ▲17 | 2.01 ▲0.01 | 40.38 ▲4.30 | 37.20 ▲2.54 |
Add New Post /wp-admin/post-new.php | 1,748 ▲234 | 23.08 ▲5.27 | 578.11 ▼112.20 | 56.00 ▲5.01 |
Media Library /wp-admin/upload.php | 1,403 ▲15 | 4.18 ▼0.03 | 96.44 ▼1.00 | 42.19 ▼3.33 |
WP SyntaxHighlighter /wp-admin/options-general.php?page=wp-syntaxhighlighter-options | 2,395 | 1.56 | 6.39 | 38.64 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 7 options
- recovery_mode_email_last_sent
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/options-general.php?page=wp-syntaxhighlighter-options
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=wp-syntaxhighlighter-options
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=wp-syntaxhighlighter-options
- > Error in wp-content/plugins/wp-syntaxhighlighter/wp-syntaxhighlighter-admin.php+715
Uncaught Error: Call to undefined function mysql_get_server_info() in wp-content/plugins/wp-syntaxhighlighter/wp-syntaxhighlighter-admin.php:715
Stack trace:
#0 wp-includes/class-wp-hook.php(310): wp_sh_options_panel()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-admin/admin.php(259): do_action()
#4 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
#5 {main}
thrown
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
The following issues need your attention
- 81× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined index: codebox in wp-content/plugins/wp-syntaxhighlighter/get-updated-settings.php on line 119
- > PHP Notice
Undefined index: lib_version in wp-content/plugins/wp-syntaxhighlighter/get-updated-settings.php on line 55
- > PHP Notice
Undefined index: wiget_shorcode in wp-content/plugins/wp-syntaxhighlighter/get-updated-settings.php on line 178
- > PHP Fatal error
Uncaught Error: Call to undefined function bbp_is_anonymous() in wp-content/plugins/wp-syntaxhighlighter/bbpress-highlight-button.php:15
- > PHP Notice
Undefined index: button_row in wp-content/plugins/wp-syntaxhighlighter/get-updated-settings.php on line 125
- > PHP Notice
Undefined index: css in wp-content/plugins/wp-syntaxhighlighter/get-updated-settings.php on line 109
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/wp-syntaxhighlighter/sh-pre-quicktag.php:11
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/wp-syntaxhighlighter/bbpress-highlight-button.php on line 11
- > PHP Notice
Undefined index: quick_code in wp-content/plugins/wp-syntaxhighlighter/get-updated-settings.php on line 66
- > PHP Fatal error
Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/wp-syntaxhighlighter/wp-syntaxhighlighter.php:38
- > PHP Notice
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)
No browser issues were found
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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
Attributes that require attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (This is a highlighted code.), #2 (This is a highlighted code in comments and buttons added to the form.), #3 (This is a highlighted code in bbPress and buttons added to the form), #4 (This is setting panel.), #5 (This is "SH TinyMCE" button.), #6 (This is pop up window at the click of "pre" button.), #7 (This is pop up window at the click of "CODE" button.), #8 (This is "SH pre" button.), #9 (This is pop up window at the click of "SH pre" button.)
- Tags: There are too many tags (12 tag instead of maximum 10)
wp-syntaxhighlighter/wp-syntaxhighlighter.php 85% from 13 tests
The main PHP file in "WP SyntaxHighlighter" ver. 1.7.3 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Description: Please don't use more than 140 characters for the plugin description (currently 276 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected13,552 lines of code in 135 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 85 | 1,174 | 2,766 | 5,471 |
CSS | 28 | 251 | 627 | 4,509 |
PHP | 19 | 249 | 380 | 3,111 |
PO File | 2 | 180 | 209 | 394 |
Markdown | 1 | 34 | 0 | 67 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.64 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 85 | |
▷ Named functions | 85 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.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
7 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
sh-tinymce-button-ins/shtb_img.png | 2.88KB | 0.23KB | ▼ 92.08% |
sh-tinymce-button-box/shtb_img.png | 2.83KB | 0.19KB | ▼ 93.37% |
syntaxhighlighter2/styles/printer.png | 0.71KB | 0.77KB | 0.00% |
syntaxhighlighter2/styles/help.png | 0.77KB | 0.82KB | 0.00% |
syntaxhighlighter2/styles/magnifier.png | 0.60KB | 0.60KB | 0.00% |