Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.01MB] [CPU: ▼10.36ms] Passed 4 tests
This is a short check of server-side resources used by Resize Editor
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 42.89 ▼0.72 |
Dashboard /wp-admin | 3.31 ▲0.01 | 57.10 ▲10.77 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 46.57 ▼9.44 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 100.06 ▼26.13 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 34.95 ▼5.15 |
Resize Editor /wp-admin/options-general.php?page=resize-editor | 3.20 | 29.95 |
Server storage [IO: ▲0.06MB] [DB: ▲0.07MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Resize Editor
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲49 | 13.22 ▼0.95 | 1.75 ▼0.40 | 47.35 ▲5.84 |
Dashboard /wp-admin | 2,212 ▲26 | 4.87 ▼0.08 | 127.35 ▲12.01 | 48.76 ▲4.32 |
Posts /wp-admin/edit.php | 2,098 ▲6 | 2.14 ▲0.14 | 39.08 ▼2.94 | 35.28 ▼0.96 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.25 ▲0.06 | 660.19 ▲8.40 | 60.69 ▲2.37 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.19 ▼0.05 | 96.56 ▼4.20 | 40.93 ▼7.53 |
Resize Editor /wp-admin/options-general.php?page=resize-editor | 782 | 2.03 | 24.17 | 25.15 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
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 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
Almost there! Just fix the following items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/resize-editor/resize-editor.php:43
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please fix the following browser errors
- > GET request to /wp-admin/options-general.php?page=resize-editor
- > Network (severe)
wp-content/plugins/resize-editor/style.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Add images for these screenshots: #1 (set editor width), #2 (resize post editor width)
- Plugin Name: Please specify the plugin name on the first line (
=== resize-editor ===
)
resize-editor/resize-editor.php Passed 13 tests
The primary PHP file in "Resize Editor" version 1.1.0 is used by WordPress to initiate all plugin functionality
25 characters long description:
Resize post editor width.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected115 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 13 | 60 | 91 |
PO File | 1 | 4 | 4 | 24 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
2 PNG files occupy 0.05MB with 0.04MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 21.89KB | 5.06KB | ▼ 76.87% |
screenshot-2.png | 30.29KB | 8.08KB | ▼ 73.32% |