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
The following installer errors require your attention
- Install procedure had errors
- > Deprecated in wp-content/plugins/wp-super-edit/wp-super-edit.core.class.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; wp_super_edit_core has a deprecated constructor
Server metrics [RAM: ▼1.83MB] [CPU: ▼55.88ms] Passed 4 tests
Server-side resources used by WP Super Edit
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.16 ▼1.30 | 6.01 ▼40.73 |
Dashboard /wp-admin | 2.18 ▼1.12 | 6.55 ▼47.39 |
Posts /wp-admin/edit.php | 2.18 ▼1.17 | 7.56 ▼43.26 |
Add New Post /wp-admin/post-new.php | 2.18 ▼3.71 | 7.80 ▼92.14 |
Media Library /wp-admin/upload.php | 2.18 ▼1.05 | 6.10 ▼32.07 |
Server storage [IO: ▲0.44MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Super Edit
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.32 ▼0.04 | 1.74 ▼0.25 | 43.85 ▼0.46 |
Dashboard /wp-admin | 2,196 ▲16 | 5.58 ▼0.10 | 122.87 ▲20.74 | 43.95 ▲0.38 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 2.09 ▲0.08 | 33.70 ▼2.77 | 35.82 ▲0.35 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 23.18 ▼0.45 | 686.26 ▼8.45 | 54.22 ▲2.49 |
Media Library /wp-admin/upload.php | 1,404 ▲7 | 4.20 ▼0.05 | 101.02 ▼5.89 | 43.97 ▲0.42 |
WP Super Edit /wp-admin/wp-super-edit-admin.php | 26 | 0.42 | 0.10 | 16.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/wp-super-edit/wp-super-edit.core.class.php+12
Methods with the same name as their class will not be constructors in a future version of PHP; wp_super_edit_core has a deprecated constructor
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% 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
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wp-super-edit/wp-super-edit-defaults.php:76
- > PHP Warning
Use of undefined constant WP_PLUGIN_DIR - assumed 'WP_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/wp-super-edit/wp-super-edit.php on line 58
- > PHP Warning
require_once(WP_PLUGIN_DIR/wp-super-edit/wp-super-edit.core.class.php): failed to open stream: No such file or directory in wp-content/plugins/wp-super-edit/wp-super-edit.php on line 58
- > PHP Fatal error
require_once(): Failed opening required 'WP_PLUGIN_DIR/wp-super-edit/wp-super-edit.core.class.php' (include_path='.:/usr/share/php') in wp-content/plugins/wp-super-edit/wp-super-edit.php on line 58
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_super_edit_ui_header() in wp-content/plugins/wp-super-edit/wp-super-edit-user.php:24
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/wp-super-edit-admin.php
- > Network (severe)
wp-admin/wp-super-edit-admin.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Plugin Name: You should set the name of your plugin on the first line (
=== wp-super-edit ===
)
wp-super-edit/wp-super-edit.php Passed 13 tests
The primary PHP file in "WP Super Edit" version 2.5.4 is used by WordPress to initiate all plugin functionality
127 characters long description:
Get control of the WordPress wysiwyg visual editor and add some functionality with more buttons and customized TinyMCE plugins.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected9,726 lines of code in 37 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 28 | 1,735 | 683 | 7,167 |
PHP | 7 | 599 | 435 | 1,965 |
PO File | 1 | 157 | 157 | 386 |
CSS | 1 | 39 | 12 | 208 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 59.50 |
▷ Minimum class complexity | 58.00 |
▷ Maximum class complexity | 61.00 |
Average method complexity | 7.16 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 22.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 | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 36 | |
▷ Named functions | 36 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/close.png | 3.14KB | 0.22KB | ▼ 93.09% |
images/separator.png | 0.17KB | 0.12KB | ▼ 31.82% |
images/info.png | 0.69KB | 0.65KB | ▼ 6.61% |