Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
It is recommended to fix the following installer errors
- Install procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/wpcontenteditable/click-to-edit.php+18
Methods with the same name as their class will not be constructors in a future version of PHP; ClickToEdit has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼53.62ms] Passed 4 tests
Server-side resources used by Click to Edit
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.46 ▼36.78 |
Dashboard /wp-admin | 2.10 ▼1.21 | 6.07 ▼42.62 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 6.29 ▼43.27 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 6.19 ▼91.79 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.15 ▼32.79 |
Click to Edit /wp-admin/options-general.php?page=upstatement_ce | 2.10 | 5.90 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
upstatement_ce_options |
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Click to Edit
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,960 ▲225 | 13.60 ▼0.75 | 6.62 ▲5.00 | 41.60 ▲0.97 |
Dashboard /wp-admin | 2,210 ▲22 | 5.86 ▲0.77 | 103.05 ▼10.93 | 38.32 ▼6.31 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▲0.02 | 35.00 ▼4.96 | 36.33 ▲0.91 |
Add New Post /wp-admin/post-new.php | 1,545 ▲2 | 18.15 ▼0.51 | 623.72 ▲24.05 | 50.08 ▲0.05 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.19 ▼0.05 | 94.30 ▼0.74 | 42.61 ▲0.58 |
Click to Edit /wp-admin/options-general.php?page=upstatement_ce | 789 | 2.04 | 25.21 | 29.50 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/wpcontenteditable/click-to-edit.php+18
Methods with the same name as their class will not be constructors in a future version of PHP; ClickToEdit has a deprecated constructor
- The uninstall procedure has failed, leaving 7 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- upstatement_ce_options
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These errors were triggered by the plugin
- > GET request to /wp-admin/options-general.php?page=upstatement_ce
- > Deprecated in wp-content/plugins/wpcontenteditable/click-to-edit.php+18
Methods with the same name as their class will not be constructors in a future version of PHP; ClickToEdit has a deprecated constructor
- > GET request to /wp-admin/options-general.php?page=upstatement_ce
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=upstatement_ce
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=upstatement_ce
- > Notice in wp-content/plugins/wpcontenteditable/content-editable-admin.php+80
Undefined index: upstatement_ce_options
SRP 0% 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
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wpcontenteditable/click-to-edit.php
- 4× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATH/wp-admin/includes/plugin.php' (include_path='.:/usr/share/php') in wp-content/plugins/wpcontenteditable/content-editable-admin.php on line 3
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/wpcontenteditable/content-editable-admin.php on line 3
- > PHP Warning
require_once(ABSPATH/wp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/wpcontenteditable/content-editable-admin.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wpcontenteditable/content-editable-ajax.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
8 plugin tags: editor, admin, contenteditable, content-editable, wordpress...
wpcontenteditable/click-to-edit.php 92% from 13 tests
Analyzing the main PHP file in "Click to Edit" version 1.3
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wpcontenteditable.php" instead of "click-to-edit.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected426 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 60 | 18 | 301 |
JavaScript | 1 | 14 | 2 | 80 |
CSS | 1 | 11 | 0 | 45 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 24 | |
▷ Named functions | 24 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin