Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.17MB] [CPU: ▼8.46ms] Passed 4 tests
This is a short check of server-side resources used by DirectEdit
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.24 | 29.36 ▼10.79 |
Dashboard /wp-admin | 3.61 ▲0.30 | 50.32 ▲1.42 |
Posts /wp-admin/edit.php | 3.72 ▲0.36 | 47.75 ▲2.30 |
Add New Post /wp-admin/post-new.php | 5.74 ▼0.15 | 76.22 ▼24.64 |
Media Library /wp-admin/upload.php | 3.53 ▲0.30 | 33.66 ▲0.16 |
Direct Edit /wp-admin/plugins.php?page=direct-edit | 3.50 | 32.46 |
Server storage [IO: ▲0.45MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 44 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for DirectEdit
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,446 ▲711 | 16.31 ▲1.93 | 53.84 ▲52.09 | 47.98 ▲5.96 |
Dashboard /wp-admin | 2,207 ▲19 | 5.99 ▲0.09 | 99.01 ▼6.54 | 39.25 ▼1.10 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.02 ▲0.01 | 39.03 ▼1.98 | 34.98 ▼0.63 |
Add New Post /wp-admin/post-new.php | 6,495 ▲4,959 | 21.11 ▼2.11 | 834.42 ▲193.88 | 67.60 ▲11.30 |
Media Library /wp-admin/upload.php | 1,392 ▲4 | 4.22 ▲0.00 | 96.67 ▲0.45 | 42.58 ▼2.12 |
Direct Edit /wp-admin/plugins.php?page=direct-edit | 948 | 1.87 | 30.79 | 41.95 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% 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 without warnings or errors
- > Notice in wp-content/plugins/directedit/direct-edit.php+474
Undefined property: WP_Role::$ID
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please take a closer look at the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'De_Item' not found in wp-content/plugins/directedit/core/classes/de-item-text.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_theme_support() in wp-content/plugins/directedit/core/handler.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/directedit/direct-admin.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/directedit/direct-edit.php:17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed:
- Donate link: Please fix this invalid URI: ""
directedit/direct-edit.php 85% from 13 tests
The principal PHP file in "DirectEdit" v. 1.0.4 is loaded by WordPress automatically on each request
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("directedit.php" instead of "direct-edit.php")
- Description: Please keep the plugin description shorter than 140 characters (currently 384 characters long)
Code Analysis 5% from 3 tests
File types 0% from 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
It is important to fix the following items
- Even if your plugin relies on executable files (for example a companion app), never distribute executable files with your plugin
- .bat - Batch File in Windows
- ☣ wp-content/plugins/directedit/js/minify.bat
- .bat - Batch File in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 699 | 396 | 4,022 |
JavaScript | 12 | 118 | 299 | 2,571 |
CSS | 2 | 283 | 183 | 1,720 |
JSON | 1 | 0 | 0 | 163 |
DOS Batch | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.59 |
Average class complexity | 93.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 304.00 |
Average method complexity | 7.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 71.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 111 | |
▷ Static methods | 22 | 19.82% |
▷ Public methods | 95 | 85.59% |
▷ Protected methods | 16 | 14.41% |
▷ Private methods | 0 | 0.00% |
Functions | 65 | |
▷ Named functions | 65 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 25 | |
▷ Global constants | 25 | 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
15 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
theme/images/select_style_right.png | 3.35KB | 3.02KB | ▼ 9.80% |
theme/images/select_style_centered.png | 3.26KB | 2.96KB | ▼ 9.26% |
theme/images/corner-tr.png | 0.13KB | 0.09KB | ▼ 32.09% |
theme/images/select_style.png | 7.45KB | 5.68KB | ▼ 23.84% |
theme/images/select_style_left.png | 3.39KB | 3.06KB | ▼ 9.49% |