Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.14MB] [CPU: ▼5.90ms] Passed 4 tests
This is a short check of server-side resources used by Easy Code Placement
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.57 ▲0.10 | 43.12 ▲1.42 |
Dashboard /wp-admin | 3.44 ▲0.14 | 48.77 ▼3.16 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 48.09 ▼1.04 |
Add New Post /wp-admin/post-new.php | 6.12 ▲0.23 | 80.93 ▼19.05 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 37.04 ▼0.33 |
Easy Code Placement /wp-admin/options-general.php?page=ecp | 3.36 | 40.08 |
Server storage [IO: ▲0.67MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_ecp_options |
wp_ecp_data |
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_ecp_widget |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Easy Code Placement: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.28 ▼0.07 | 1.90 ▲0.19 | 39.78 ▼7.99 |
Dashboard /wp-admin | 2,199 ▲19 | 5.64 ▲0.06 | 84.79 ▼6.40 | 40.08 ▼4.63 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.02 ▼0.00 | 35.51 ▼1.21 | 34.45 ▼0.65 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.06 ▲0.01 | 609.47 ▼100.64 | 47.42 ▼10.14 |
Media Library /wp-admin/upload.php | 1,404 ▲1 | 4.18 ▲0.07 | 99.29 ▼6.66 | 43.43 ▼3.25 |
Easy Code Placement /wp-admin/options-general.php?page=ecp | 1,855 | 2.64 | 63.95 | 32.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
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_ecp_widget
- db_upgraded
Smoke tests 50% 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)
Even though everything seems fine, this is not an exhaustive test
SRP 0% 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
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/easy-code-placement/easy-code-placement.php
- 15× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function ecp_check_access() in wp-content/plugins/easy-code-placement/inc/home.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function ecp_check_access() in wp-content/plugins/easy-code-placement/inc/actions/edit.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function ecp_check_access() in wp-content/plugins/easy-code-placement/inc/actions/status.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function ecp_check_access() in wp-content/plugins/easy-code-placement/inc/actions/settings.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function ecp_check_access() in wp-content/plugins/easy-code-placement/inc/install.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function ecp_check_access() in wp-content/plugins/easy-code-placement/inc/actions/add.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function ecp_check_access() in wp-content/plugins/easy-code-placement/inc/error.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function ecp_check_access() in wp-content/plugins/easy-code-placement/inc/pages/system.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function ecp_check_access() in wp-content/plugins/easy-code-placement/inc/load.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function ecp_check_access() in wp-content/plugins/easy-code-placement/inc/pages/help.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== easy-code-placement ===
) - Tags: There are too many tags (51 tag instead of maximum 10)
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Options-menu), #2 (Add new code), #3 (Edit existing code), #4 (Text-widget with shortcode inside), #5 (Own widget with shortcode-selection), #6 (Settings), #7 (System informations)
easy-code-placement/easy-code-placement.php Passed 13 tests
The entry point to "Easy Code Placement" version 18.11 is a PHP file that has certain tags in its header comment area
61 characters long description:
A great Wordpress Plugin to place ANY Code ANYWHERE you want.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected1,208 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 16 | 195 | 246 | 909 |
PO File | 1 | 111 | 143 | 264 |
CSS | 2 | 3 | 9 | 24 |
JavaScript | 3 | 2 | 13 | 11 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 10.00 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 10.00 |
Average method complexity | 3.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
7 PNG files occupy 0.17MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-7.png | 72.93KB | 40.30KB | ▼ 44.73% |
screenshot-4.png | 9.03KB | 4.98KB | ▼ 44.81% |
screenshot-1.png | 28.05KB | 13.11KB | ▼ 53.27% |
screenshot-5.png | 9.62KB | 5.33KB | ▼ 44.57% |
screenshot-3.png | 14.42KB | 7.29KB | ▼ 49.46% |