Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼11.36ms] Passed 4 tests
Server-side resources used by WP Prism Syntax Highlighter
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 42.97 ▼4.03 |
Dashboard /wp-admin | 3.35 ▲0.00 | 53.73 ▼19.05 |
Posts /wp-admin/edit.php | 3.41 ▲0.04 | 53.11 ▲1.08 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.04 | 85.47 ▼19.31 |
Media Library /wp-admin/upload.php | 3.28 ▲0.04 | 35.35 ▼3.05 |
Prism /wp-admin/options-general.php?page=prism | 3.27 | 37.97 |
Server storage [IO: ▲0.13MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
notice_warn_theme_css |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Prism Syntax Highlighter
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,828 ▲82 | 14.35 ▼0.21 | 1.76 ▼0.05 | 43.58 ▼4.64 |
Dashboard /wp-admin | 2,237 ▲63 | 5.82 ▲0.24 | 88.03 ▼14.86 | 44.54 ▼1.17 |
Posts /wp-admin/edit.php | 2,141 ▲59 | 2.39 ▲0.39 | 36.47 ▼0.31 | 32.50 ▼6.68 |
Add New Post /wp-admin/post-new.php | 1,565 ▲37 | 23.35 ▲0.02 | 658.95 ▲6.06 | 51.68 ▲0.67 |
Media Library /wp-admin/upload.php | 1,440 ▲43 | 4.38 ▲0.28 | 102.60 ▼6.46 | 50.87 ▲6.50 |
Prism /wp-admin/options-general.php?page=prism | 1,059 | 1.83 | 25.40 | 43.83 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- notice_warn_theme_css
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check 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
- 2× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/wp-prism-syntax-highlighter/wp-prism-syntax-highlighter.php
- > /wp-content/plugins/wp-prism-syntax-highlighter/prism-options.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 97% 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 need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Integrated code editor), #2 (Highlighted C++ code), #3 (Plugin settings)
wp-prism-syntax-highlighter/wp-prism-syntax-highlighter.php Passed 13 tests
The principal PHP file in "WP Prism Syntax Highlighter" v. 1.0.5 is loaded by WordPress automatically on each request
89 characters long description:
A lightweight and convenient plugin to integrate Prism Syntax Highlighter into WordPress.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected440 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 2 | 34 | 28 | 171 |
PHP | 2 | 57 | 57 | 165 |
CSS | 1 | 21 | 8 | 104 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 12.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 2.10 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 1 | 10.00% |
▷ Public methods | 8 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 20.00% |
Functions | 4 | |
▷ Named functions | 4 | 100.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
Using a strong compression for your PNG files is a great way to speed-up your plugin
3 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 19.56KB | 9.68KB | ▼ 50.50% |
screenshot-1.png | 16.11KB | 8.33KB | ▼ 48.32% |
screenshot-3.png | 18.78KB | 10.58KB | ▼ 43.65% |