Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
- The plugin cannot be installed
- > Warning in wp-content/plugins/syntaxhighlighter-amplified/shortcodes.php+23
array_keys() expects parameter 1 to be array, null given
Server metrics [RAM: ▲0.14MB] [CPU: ▼9.11ms] Passed 4 tests
Server-side resources used by SyntaxHighlighter Amplified
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.32 | 44.58 ▲2.92 |
Dashboard /wp-admin | 3.63 ▲0.28 | 54.50 ▼7.40 |
Posts /wp-admin/edit.php | 3.74 ▲0.38 | 46.59 ▲2.57 |
Add New Post /wp-admin/post-new.php | 5.52 ▼0.37 | 62.24 ▼34.28 |
Media Library /wp-admin/upload.php | 3.55 ▲0.32 | 35.15 ▲2.66 |
SyntaxHighlighter Amplified /wp-admin/options-general.php?page=shamp_plugin | 3.49 | 34.29 |
Server storage [IO: ▲1.63MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 320 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by SyntaxHighlighter Amplified
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.10 ▼0.26 | 1.71 ▲0.08 | 42.27 ▼2.45 |
Dashboard /wp-admin | 2,199 ▲25 | 5.52 ▼0.04 | 94.00 ▼6.60 | 38.87 ▼6.26 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▲0.04 | 32.90 ▼1.40 | 35.71 ▼0.01 |
Add New Post /wp-admin/post-new.php | 6,370 ▲4,844 | 27.55 ▲4.82 | 883.20 ▲203.30 | 49.51 ▼16.99 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.13 ▼0.07 | 94.05 ▼5.35 | 42.38 ▼3.15 |
SyntaxHighlighter Amplified /wp-admin/options-general.php?page=shamp_plugin | 1,344 | 2.01 | 28.07 | 41.10 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Please fix the following server-side errors
- 35 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=shamp_plugin
- > Notice in wp-content/plugins/syntaxhighlighter-amplified/sanitizer.php+167
Trying to access array offset on value of type bool
- > GET request to /wp-admin/options-general.php?page=shamp_plugin
- > Notice in wp-content/plugins/syntaxhighlighter-amplified/sanitizer.php+263
Undefined index: light
- > GET request to /wp-admin/options-general.php?page=shamp_plugin
- > Notice in wp-content/plugins/syntaxhighlighter-amplified/sanitizer.php+173
Undefined variable: title_attr
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function SyntaxHighlighterAmplified\\add_filter() in wp-content/plugins/syntaxhighlighter-amplified/shortcodes.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function SyntaxHighlighterAmplified\\add_action() in wp-content/plugins/syntaxhighlighter-amplified/settings.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function SyntaxHighlighterAmplified\\add_filter() in wp-content/plugins/syntaxhighlighter-amplified/shortcodes.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function SyntaxHighlighterAmplified\\get_option() in wp-content/plugins/syntaxhighlighter-amplified/blocks.php:11
- > PHP Fatal error
Uncaught Error: Class 'PhpCsFixer\\Finder' not found in wp-content/plugins/syntaxhighlighter-amplified/vendor/scrivo/highlight.php/.php-cs-fixer.dist.php:3
- > PHP Fatal error
Uncaught Error: Class 'Highlight\\Mode' not found in wp-content/plugins/syntaxhighlighter-amplified/vendor/scrivo/highlight.php/Highlight/Language.php:48
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: highlighting, syntax, wordpresscom, code, source...
syntaxhighlighter-amplified/syntaxhighlighter-amplified.php 92% from 13 tests
The main PHP script in "SyntaxHighlighter Amplified" version 1.0.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected32,797 lines of code in 312 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 187 | 0 | 0 | 23,378 |
CSS | 93 | 1,261 | 698 | 5,929 |
PHP | 28 | 605 | 1,615 | 2,824 |
JavaScript | 1 | 32 | 35 | 483 |
Markdown | 3 | 105 | 0 | 183 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.46 |
Average class complexity | 20.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 113.00 |
Average method complexity | 3.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 4 | |
Interfaces | 0 | |
Traits | 1 | |
Classes | 13 | |
▷ Abstract classes | 3 | 23.08% |
▷ Concrete classes | 10 | 76.92% |
▷ Final classes | 2 | 20.00% |
Methods | 98 | |
▷ Static methods | 12 | 12.24% |
▷ Public methods | 63 | 64.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 35 | 35.71% |
Functions | 48 | |
▷ Named functions | 46 | 95.83% |
▷ Anonymous functions | 2 | 4.17% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
vendor/scrivo/highlight.php/styles/brown-papersq.png | 17.77KB | 9.92KB | ▼ 44.16% |
vendor/scrivo/highlight.php/styles/school-book.png | 0.47KB | 0.34KB | ▼ 27.37% |