Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▼5.14ms] Passed 4 tests
Server-side resources used by CC-Syntax-Highlight
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.14 | 42.83 ▼5.16 |
Dashboard /wp-admin | 3.49 ▲0.14 | 50.92 ▼0.21 |
Posts /wp-admin/edit.php | 3.60 ▲0.20 | 45.99 ▼1.86 |
Add New Post /wp-admin/post-new.php | 6.07 ▲0.14 | 92.72 ▼13.34 |
Media Library /wp-admin/upload.php | 3.41 ▲0.14 | 41.35 ▲5.66 |
Syntax Highlight /wp-admin/options-general.php?page=syntax_highlight | 3.38 | 32.80 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 172 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
Clearcode\Syntax_Highlight |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by CC-Syntax-Highlight
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.35 ▼0.27 | 1.62 ▲0.08 | 41.40 ▲1.02 |
Dashboard /wp-admin | 2,201 ▲23 | 5.52 ▼0.20 | 83.67 ▼17.75 | 43.91 ▼3.09 |
Posts /wp-admin/edit.php | 2,106 ▲6 | 2.00 ▼0.00 | 35.58 ▼5.66 | 33.68 ▼2.95 |
Add New Post /wp-admin/post-new.php | 1,533 ▲7 | 23.18 ▼0.46 | 679.69 ▲28.95 | 62.16 ▲4.24 |
Media Library /wp-admin/upload.php | 1,403 ▲6 | 4.19 ▼0.03 | 100.35 ▼10.96 | 46.14 ▼1.61 |
Syntax Highlight /wp-admin/options-general.php?page=syntax_highlight | 1,312 | 2.04 | 22.86 | 29.50 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: Screenshot #1 (**CC-Syntax-Highlight Settings** - Visit the 'Settings > Syntax Highlight' page, select your preferred options and save them.) image required
cc-syntax-highlight/plugin.php 92% from 13 tests
The principal PHP file in "CC-Syntax-Highlight" v. 1.2.3 is loaded by WordPress automatically on each request
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cc-syntax-highlight.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin7,822 lines of code in 155 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 114 | 1,418 | 861 | 7,353 |
PHP | 3 | 92 | 74 | 288 |
JavaScript | 36 | 3 | 14 | 136 |
PO File | 1 | 36 | 62 | 42 |
SVG | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 25.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 48.00 |
Average method complexity | 2.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 1 | 50.00% |
▷ Concrete classes | 1 | 50.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 4 | 12.90% |
▷ Public methods | 24 | 77.42% |
▷ Protected methods | 7 | 22.58% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
5 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
highlight/school-book.png | 0.47KB | 0.34KB | ▼ 27.37% |
screenshot-1.png | 54.45KB | 19.91KB | ▼ 63.43% |
highlight/brown-papersq.png | 17.77KB | 9.92KB | ▼ 44.16% |
highlight/brown_papersq.png | 17.77KB | 9.92KB | ▼ 44.16% |
highlight/school_book.png | 0.47KB | 0.34KB | ▼ 27.37% |