Benchmarks
Plugin footprint 23% 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
- The plugin did not install without errors
- > Warning in wp-content/plugins/code-clone/admin/uninstall.php+35
Use of undefined constant cc_INSERT_HTML_PLUGIN_FILE - assumed 'cc_INSERT_HTML_PLUGIN_FILE' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.95MB] [CPU: ▼56.68ms] Passed 4 tests
Analyzing server-side resources used by Code Clone
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.43 | 4.60 ▼39.33 |
Dashboard /wp-admin | 2.05 ▼1.25 | 6.55 ▼52.23 |
Posts /wp-admin/edit.php | 2.05 ▼1.30 | 5.95 ▼46.00 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.83 | 5.91 ▼89.17 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 6.20 ▼30.52 |
HTML Codes /wp-admin/admin.php?page=insert-html-snippet-manage | 2.05 | 5.30 |
Settings /wp-admin/admin.php?page=insert-html-snippet-settings | 2.05 | 5.72 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 37 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_cc_ihs_short_code |
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
cc_credit_link |
widget_cc_insert_html_widget |
theysaidso_admin_options |
cc_ihs_limit |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Code Clone
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,945 ▲199 | 13.68 ▼0.34 | 6.10 ▲3.64 | 37.70 ▼11.56 |
Dashboard /wp-admin | 2,224 ▲36 | 5.87 ▲0.96 | 109.45 ▼1.06 | 77.69 ▲34.27 |
Posts /wp-admin/edit.php | 2,125 ▲36 | 2.05 ▲0.07 | 37.82 ▼1.89 | 33.32 ▼3.04 |
Add New Post /wp-admin/post-new.php | 1,694 ▲177 | 22.60 ▲4.97 | 727.78 ▲42.62 | 57.18 ▲4.13 |
Media Library /wp-admin/upload.php | 1,418 ▲30 | 4.17 ▼0.03 | 95.02 ▼15.86 | 73.76 ▲26.57 |
HTML Codes /wp-admin/admin.php?page=insert-html-snippet-manage | 864 | 2.07 | 24.01 | 31.48 |
Settings /wp-admin/admin.php?page=insert-html-snippet-settings | 855 | 2.07 | 26.94 | 37.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 25% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Uninstall procedure validation failed for this plugin
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- This plugin does not fully uninstall, leaving 1 table in the database
- wp_cc_ihs_short_code
- Zombie WordPress options detected upon uninstall: 9 options
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_cc_insert_html_widget
- cc_credit_link
- widget_recent-posts
- widget_recent-comments
- cc_ihs_limit
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=insert-html-snippet-settings
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=insert-html-snippet-settings
- > User notice in wp-includes/functions.php+5905
Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the cc_notice_script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=insert-html-snippet-settings
- > User notice in wp-includes/functions.php+5905
Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the cc_notice_script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=insert-html-snippet-settings
- > Warning in wp-content/plugins/code-clone/admin/uninstall.php+35
Use of undefined constant cc_INSERT_HTML_PLUGIN_FILE - assumed 'cc_INSERT_HTML_PLUGIN_FILE' (this will throw an Error in a future version of PHP)
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=insert-html-snippet-settings
- > Deprecated in wp-content/plugins/code-clone/widget.php+91
Function create_function() is deprecated
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=insert-html-snippet-settings
- > User deprecated in wp-includes/functions.php+5546
The called constructor method for WP_Widget class in cc_Insert_Html_Widget is deprecated since version 4.3.0! Use __construct() instead.
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The following issues need your attention
- 19× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/code-clone/admin/header.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function stripslashes_deep() in wp-content/plugins/code-clone/admin/snippet-delete.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function stripslashes_deep() in wp-content/plugins/code-clone/admin/snippet-status.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/code-clone/admin/ajax-backlink.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/code-clone/direct_call.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/code-clone/add_shortcode_tynimce.php:45
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/code-clone/admin/settings.php:51
- > PHP Fatal error
Uncaught Error: Call to undefined function register_uninstall_hook() in wp-content/plugins/code-clone/admin/uninstall.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/code-clone/admin/menu.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/code-clone/accordion.php:5
- > PHP Fatal 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 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Tags: Too many tags (19 tag instead of maximum 10); only the first 5 tags are used in your directory listing
code-clone/insert-html-snippet.php 77% from 13 tests
This is the main PHP file of "Code Clone" version 0.9, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("code-clone.php" instead of "insert-html-snippet.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 604 characters long)
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
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
Good job! No executable or dangerous file extensions detected1,259 lines of code in 24 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 22 | 354 | 112 | 1,042 |
CSS | 1 | 56 | 1 | 205 |
JavaScript | 1 | 3 | 0 | 12 |
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.37 |
Average class complexity | 6.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.43 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
10 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/support.png | 0.71KB | 0.80KB | 0.00% |
images/gplus.png | 3.34KB | 0.79KB | ▼ 76.37% |
images/logo.png | 0.46KB | 0.41KB | ▼ 10.74% |
images/facebook.png | 0.59KB | 0.66KB | 0.00% |
images/edit.png | 3.18KB | 2.07KB | ▼ 34.91% |