Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
- Install procedure had errors
- > Warning in wp-content/plugins/code-snippets-by-webpals/db_handler.php+8
Use of undefined constant SHORTCODE_PLUGIN_TABLE_NAME - assumed 'SHORTCODE_PLUGIN_TABLE_NAME' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▲0.00MB] [CPU: ▼9.30ms] Passed 4 tests
An overview of server-side resources used by Code Injection For WYSIWYG
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 41.85 ▼5.17 |
Dashboard /wp-admin | 3.31 ▲0.00 | 48.54 ▼16.35 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.59 ▼4.10 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 87.03 ▼11.59 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 40.01 ▲4.90 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Code Injection For WYSIWYG
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲28 | 14.26 ▼0.02 | 2.02 ▲0.31 | 41.86 ▼2.75 |
Dashboard /wp-admin | 2,189 ▲12 | 5.55 ▼0.09 | 86.07 ▼2.50 | 40.64 ▼4.88 |
Posts /wp-admin/edit.php | 2,100 ▲3 | 1.97 ▼0.04 | 35.76 ▼1.52 | 32.55 ▼1.35 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.03 ▼0.10 | 671.19 ▼12.16 | 54.60 ▲1.28 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.27 ▲0.17 | 98.14 ▼3.03 | 41.05 ▼0.94 |
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
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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
Almost there! Just fix the following items
- 4× PHP files trigger server errors when accessed directly:
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/code-snippets-by-webpals/code_snippet_backend_class.php on line 90
- > PHP Parse error
syntax error, unexpected end of file in wp-content/plugins/code-snippets-by-webpals/code_snippet_backend_class.php on line 90
- > PHP Warning
Use of undefined constant SHORTCODE_PLUGIN_TABLE_NAME - assumed 'SHORTCODE_PLUGIN_TABLE_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/code-snippets-by-webpals/db_handler.php on line 8
- > PHP Warning
Use of undefined constant SHORTCODE_PLUGIN_TABLE_NAME - assumed 'SHORTCODE_PLUGIN_TABLE_NAME' (this will throw an Error in a future version of PHP) in wp-content/plugins/code-snippets-by-webpals/db_handler.php on line 8
- > PHP Parse error
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 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Donate link: Invalid URI found ("")
- License uri: Invalid URI found ("")
code-snippets-by-webpals/code-snippets.php 92% from 13 tests
Analyzing the main PHP file in "Code Injection For WYSIWYG" version 3.3
It is important to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("code-snippets-by-webpals.php" instead of "code-snippets.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected187 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 34 | 40 | 167 |
JavaScript | 1 | 6 | 6 | 20 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.14 |
Average class complexity | 2.67 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 5.00 |
Average method complexity | 1.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin