Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.29MB] [CPU: ▼21.29ms] Passed 4 tests
Server-side resources used by Lite Syntax Highlighting
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 34.68 ▼5.87 |
Dashboard /wp-admin | 3.36 ▲0.01 | 50.37 ▼15.97 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 49.21 ▼0.68 |
Add New Post /wp-admin/post-new.php | 4.65 ▼1.24 | 43.91 ▼62.64 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 43.08 ▲7.46 |
Syntax Highlighting /wp-admin/options-general.php?page=highlighting | 3.25 | 36.63 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
syntax_highlighting_options |
Browser metrics Passed 4 tests
Checking browser requirements for Lite Syntax Highlighting
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,930 ▲169 | 13.60 ▼0.78 | 5.76 ▲3.90 | 43.29 ▲2.14 |
Dashboard /wp-admin | 2,228 ▲22 | 5.82 ▲0.93 | 104.07 ▼0.89 | 39.96 ▼2.81 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.03 ▲0.05 | 37.31 ▲2.19 | 33.45 ▼3.04 |
Add New Post /wp-admin/post-new.php | 1,532 ▲6 | 17.56 ▲0.13 | 684.43 ▲34.51 | 50.00 ▼5.69 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.15 ▼0.17 | 106.09 ▼1.31 | 46.18 ▼0.20 |
Syntax Highlighting /wp-admin/options-general.php?page=highlighting | 939 | 1.99 | 21.98 | 29.75 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/lite-syntax-highlighting/lite-syntax-highlighting.php:16
- > PHP Fatal error
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)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% 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 need to be fixed:
- Screenshots: These screenshots do not have images: #1 (Example for PHP code), #2 (Settings page), #3 (Editor), #4 (Dark style)
lite-syntax-highlighting/lite-syntax-highlighting.php Passed 13 tests
The main PHP script in "Lite Syntax Highlighting" version 0.5 is automatically included on every request by WordPress
55 characters long description:
Lite Syntax Highlighting for PHP, JS, CSS ans HTML code
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected878 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 1 | 2 | 12 | 456 |
PHP | 4 | 33 | 15 | 204 |
CSS | 2 | 28 | 0 | 126 |
PO File | 3 | 18 | 30 | 92 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 3.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 9 | 90.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 14.85KB | 7.01KB | ▼ 52.76% |
screenshot-2.png | 29.89KB | 12.77KB | ▼ 57.26% |