Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.13MB] [CPU: ▼283.24ms] Passed 4 tests
Server-side resources used by WP SyntaxHighlighter Theme Advance
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.02 | 28.65 ▼4.66 |
Dashboard /wp-admin | 2.99 ▼0.06 | 26.15 ▼8.44 |
Posts /wp-admin/edit.php | 3.04 ▼0.06 | 32.09 ▼10.23 |
Add New Post /wp-admin/post-new.php | 5.05 ▼0.37 | 77.39 ▼1,109.63 |
Media Library /wp-admin/upload.php | 2.99 ▼0.01 | 26.30 ▼3.42 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for WP SyntaxHighlighter Theme Advance
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,713 ▲131 | 15.95 ▲0.27 | 8.10 ▲0.64 | 44.55 ▼6.77 |
Dashboard /wp-admin | 2,970 ▲117 | 6.09 ▲0.23 | 134.75 ▼1.57 | 96.92 ▼5.99 |
Posts /wp-admin/edit.php | 2,712 ▲6 | 2.69 ▲0.01 | 61.78 ▼4.64 | 92.50 ▲2.26 |
Add New Post /wp-admin/post-new.php | 1,860 ▲7 | 19.12 ▲0.06 | 356.45 ▼9.67 | 100.66 ▼5.48 |
Media Library /wp-admin/upload.php | 1,786 ▲14 | 5.04 ▲0.03 | 147.73 ▼1.61 | 110.61 ▼4.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% 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
Almost there! Just fix the following items
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'scbAdminPage' not found in wp-content/plugins/wp-syntaxhighlighter-theme/scb/BoxesPage.php:5
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-syntaxhighlighter-theme/scb/Widget.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-syntaxhighlighter-theme/scb/load.php:32
- > PHP Fatal error
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
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Add theme on SyntaxHighLight Setting page), #2 (Look)
wp-syntaxhighlighter-theme/wp-sht.php 92% from 13 tests
The entry point to "WP SyntaxHighlighter Theme Advance" version 1.0.0 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-syntaxhighlighter-theme.php" instead of "wp-sht.php")
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 detected2,028 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 587 | 763 | 1,598 |
CSS | 1 | 81 | 0 | 408 |
JSON | 1 | 0 | 0 | 22 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 9.92 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 5 | 21.74% |
▷ Concrete classes | 18 | 78.26% |
▷ Final classes | 0 | 0.00% |
Methods | 177 | |
▷ Static methods | 57 | 32.20% |
▷ Public methods | 138 | 77.97% |
▷ Protected methods | 28 | 15.82% |
▷ Private methods | 11 | 6.21% |
Functions | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.22MB with 0.15MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 188.65KB | 67.03KB | ▼ 64.47% |
screenshot-2.png | 36.79KB | 8.94KB | ▼ 75.70% |