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.31MB] [CPU: ▼30.71ms] Passed 4 tests
A check of server-side resources used by Code Syntax Highlighter
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 31.70 ▼21.17 |
Dashboard /wp-admin | 3.27 ▼0.08 | 41.67 ▼23.62 |
Posts /wp-admin/edit.php | 3.34 ▼0.02 | 40.04 ▼18.33 |
Add New Post /wp-admin/post-new.php | 4.69 ▼1.20 | 46.15 ▼59.72 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 33.37 ▼3.40 |
Code Syntax Highlighter /wp-admin/options-general.php?page=code-syntax-highlighter | 3.24 | 31.21 |
Server storage [IO: ▲3.09MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 456 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_theysaidso_widget |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Code Syntax Highlighter
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲35 | 14.25 ▼0.03 | 2.05 ▼0.03 | 41.99 ▼8.03 |
Dashboard /wp-admin | 2,212 ▲38 | 5.65 ▲0.08 | 90.99 ▼11.39 | 42.47 ▼1.30 |
Posts /wp-admin/edit.php | 2,117 ▲14 | 2.02 ▲0.04 | 47.31 ▲8.86 | 39.36 ▲5.02 |
Add New Post /wp-admin/post-new.php | 1,542 ▲16 | 22.99 ▼0.16 | 679.00 ▲77.07 | 58.28 ▲9.42 |
Media Library /wp-admin/upload.php | 1,420 ▲23 | 4.16 ▼0.04 | 109.57 ▲5.73 | 46.38 ▲1.32 |
Code Syntax Highlighter /wp-admin/options-general.php?page=code-syntax-highlighter | 2,476 | 1.68 | 27.40 | 59.84 |
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
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- db_upgraded
Smoke tests 0% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
- 7 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=code-syntax-highlighter
- > Notice in wp-content/plugins/code-syntax-highlighter/inc/src/acp-page.php+140
Trying to access array offset on value of type bool
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/code-syntax-highlighter/briskjab-syntax-highlighter.php
- > /wp-content/plugins/code-syntax-highlighter/inc/src/rendrer.php
- > /wp-content/plugins/code-syntax-highlighter/inc/src/landing.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/code-syntax-highlighter/inc/src/acp-page.php:20
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=code-syntax-highlighter
- > Console-api (warning) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28609 "jQuery.Deferred exception: $(...).tabs is not a function" "TypeError: $(...).tabs is not a function\n at HTMLDocument.\u003Canonymous> (/wp-admin/options-general.php?page=code-syntax-highlighter:348:34)\n at e (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:26990)\n at t (/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1:2:27292)" undefined
- > GET request to /wp-admin/options-general.php?page=code-syntax-highlighter
- > Javascript (severe) in unknown
/wp-admin/load-scripts.php?c=0&load%5Bchunk_0%5D=jquery-core,jquery-migrate,utils&ver=6.3.1 1:28721 Uncaught TypeError: $(...).tabs is not a function
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: code theme, advance code viewer, multiple code highlighter, codemirror, snippet...
code-syntax-highlighter/briskjab-syntax-highlighter.php 85% from 13 tests
"Code Syntax Highlighter" version 1.0.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("code-syntax-highlighter.php" instead of "briskjab-syntax-highlighter.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
There were no executable files found in this plugin70,493 lines of code in 440 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 223 | 6,220 | 4,616 | 50,516 |
HTML | 128 | 2,527 | 8 | 13,488 |
CSS | 78 | 475 | 339 | 2,732 |
JSON | 3 | 1 | 0 | 1,972 |
Markdown | 3 | 571 | 0 | 1,006 |
PHP | 4 | 76 | 193 | 766 |
SVG | 1 | 1 | 0 | 13 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
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 | 34 | |
▷ Named functions | 32 | 94.12% |
▷ Anonymous functions | 2 | 5.88% |
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
No PNG files were detected