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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.09MB] [CPU: ▲0.03ms] Passed 4 tests
Server-side resources used by Prism Syntax Highlighter (detached)
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.21 | 51.42 ▲13.76 |
Dashboard /wp-admin | 3.43 ▲0.08 | 52.62 ▲0.23 |
Posts /wp-admin/edit.php | 3.54 ▲0.14 | 51.34 ▼2.19 |
Add New Post /wp-admin/post-new.php | 6.01 ▲0.08 | 84.97 ▼5.42 |
Media Library /wp-admin/upload.php | 3.35 ▲0.08 | 42.60 ▲7.49 |
Prism Detached /wp-admin/options-general.php?page=prism-detached | 3.35 | 33.74 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 62 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_theysaidso_widget |
prism_detached_cache_keys |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Prism Syntax Highlighter (detached)
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,822 ▲36 | 14.49 ▼0.15 | 3.52 ▲1.57 | 45.21 ▲1.54 |
Dashboard /wp-admin | 2,193 ▲13 | 5.55 ▼0.10 | 87.41 ▼2.23 | 42.55 ▼3.27 |
Posts /wp-admin/edit.php | 2,101 ▲4 | 2.02 ▲0.08 | 34.80 ▼4.91 | 35.04 ▼5.46 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.09 ▲0.06 | 673.56 ▲48.38 | 58.33 ▲5.03 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.13 ▼0.08 | 110.00 ▲7.15 | 47.79 ▲2.04 |
Prism Detached /wp-admin/options-general.php?page=prism-detached | 912 | 1.99 | 21.47 | 26.98 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=prism-detached
- > Notice in wp-content/plugins/prism-detached/templates/admin_settings.php+19
Undefined variable: pageUrl
- > GET request to /wp-admin/options-general.php?page=prism-detached
- > Notice in wp-content/plugins/prism-detached/templates/admin_settings.php+28
Undefined variable: invisibles
- > GET request to /wp-admin/options-general.php?page=prism-detached
- > Notice in wp-content/plugins/prism-detached/templates/admin_settings.php+37
Undefined variable: autolinker
SRP 0% from 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
Please fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/prism-detached/templates/admin_settings.php
- 15× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Notice
Undefined variable: autolinker in wp-content/plugins/prism-detached/templates/admin_settings.php on line 37
- > PHP Fatal error
Uncaught Error: Class 'Prism_Detached_Extension_Base' not found in wp-content/plugins/prism-detached/vendor/extensions/Prism_LineHighlight/Prism_Detached_Extension_Prism_LineHighlight.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/prism-detached/lib/Prism/Detached/Settings.php:60
- > PHP Notice
Undefined variable: pageUrl in wp-content/plugins/prism-detached/templates/admin_settings.php on line 19
- > PHP Notice
Undefined variable: invisibles in wp-content/plugins/prism-detached/templates/admin_settings.php on line 28
- > PHP Fatal error
Uncaught Error: Class 'Prism_Detached_Extension_Base' not found in wp-content/plugins/prism-detached/vendor/extensions/Prism_FileHighlight/Prism_Detached_Extension_Prism_FileHighlight.php:7
- > PHP Notice
Undefined variable: availableThemes in wp-content/plugins/prism-detached/templates/admin_settings.php on line 47
- > PHP Fatal error
Uncaught Error: Class 'Prism_Detached_AssetsLoader_Base' not found in wp-content/plugins/prism-detached/lib/Prism/Detached/AssetsLoader/Default.php:6
- > PHP Fatal error
Uncaught Error: Class 'Prism_Detached_Extension_Base' not found in wp-content/plugins/prism-detached/vendor/extensions/Prism_IE8/Prism_Detached_Extension_Prism_IE8.php:6
- > PHP Fatal error
Uncaught Error: Class 'Prism_Detached_Extension_Base' not found in wp-content/plugins/prism-detached/vendor/extensions/Prism_WebPlatformDocs/Prism_Detached_Extension_Prism_WebPlatformDocs.php:7
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== prism-detached ===
) - Screenshots: Add images for these screenshots: #1 (Add the code as custom field and reference it in the rich text editor via shortcode.), #2 (Code highlighting in the frontend), #3 (You can also specify some lines, which should be marked), #4 (Code highlighting with marked lines in the frontend), #5 (Plugin options screen)
prism-detached/Prism_Detached.php 92% from 13 tests
The main PHP file in "Prism Syntax Highlighter (detached)" ver. 1.5 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("prism-detached.php" instead of "Prism_Detached.php")
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
Everything looks great! No dangerous files found in this plugin1,990 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 18 | 465 | 781 | 929 |
CSS | 22 | 121 | 46 | 629 |
JavaScript | 14 | 119 | 39 | 363 |
Markdown | 1 | 50 | 0 | 69 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 4.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 1.52 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 2 | 11.76% |
▷ Concrete classes | 15 | 88.24% |
▷ Final classes | 0 | 0.00% |
Methods | 112 | |
▷ Static methods | 1 | 0.89% |
▷ Public methods | 92 | 82.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 20 | 17.86% |
Functions | 3 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 3 | 100.00% |
Constants | 3 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 3 | 100.00% |
▷ Public constants | 3 | 100.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
5 PNG files occupy 0.44MB with 0.31MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 106.33KB | 30.88KB | ▼ 70.95% |
screenshot-3.png | 38.42KB | 13.76KB | ▼ 64.19% |
screenshot-5.png | 73.63KB | 20.49KB | ▼ 72.17% |
screenshot-4.png | 127.80KB | 33.07KB | ▼ 74.12% |
screenshot-1.png | 104.29KB | 33.29KB | ▼ 68.08% |