Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Notice in wp-content/plugins/wp-edit/includes/functions.php+11
Trying to access array offset on value of type bool
Server metrics [RAM: ▲0.69MB] [CPU: ▼287.31ms] Passed 4 tests
This is a short check of server-side resources used by WP Edit
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.66 | 38.52 ▲5.20 |
Dashboard /wp-admin | 6.00 ▲2.94 | 3,689.73 ▲3,641.85 |
Posts /wp-admin/edit.php | 3.85 ▲0.74 | 47.31 ▲7.02 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.67 | 95.25 ▼1,156.56 |
Media Library /wp-admin/upload.php | 3.68 ▲0.67 | 34.65 ▼4.88 |
Server storage [IO: ▲0.54MB] [DB: ▲0.25MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 80 new files
Database: no new tables, 6 new options
New WordPress options |
---|
wp_edit_extras |
wp_edit_global |
wp_edit_buttons |
wp_edit_general |
wp_edit_posts |
wp_edit_editor |
Browser metrics Passed 4 tests
An overview of browser requirements for WP Edit
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,709 ▲103 | 13.95 ▼1.66 | 8.04 ▼0.22 | 48.65 ▲2.34 |
Dashboard /wp-admin | 3,124 ▲271 | 5.98 ▼0.01 | 138.23 ▲9.32 | 135.51 ▲35.39 |
Posts /wp-admin/edit.php | 2,785 ▲79 | 2.69 ▲0.02 | 62.96 ▼6.50 | 85.33 ▼7.89 |
Add New Post /wp-admin/post-new.php | 1,906 ▲53 | 19.22 ▲0.10 | 370.89 ▼3.27 | 111.24 ▲6.27 |
Media Library /wp-admin/upload.php | 1,851 ▲79 | 5.03 ▼0.02 | 140.75 ▼15.79 | 109.39 ▼2.61 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.25MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- wp_edit_general
- wp_edit_extras
- wp_edit_buttons
- wp_edit_posts
- wp_edit_editor
- wp_edit_global
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
Please fix the following
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/wp-edit/plugins/advlink/advlink.php
- 3× 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-edit/includes/style_formats.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-edit/main.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-edit/includes/functions.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Tags: There are too many tags (50 tag instead of maximum 10)
wp-edit/main.php 92% from 13 tests
"WP Edit" version 4.0.4's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-edit.php" instead of "main.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin7,604 lines of code in 39 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 742 | 540 | 3,855 |
PO File | 3 | 830 | 830 | 2,029 |
JavaScript | 24 | 331 | 144 | 1,123 |
CSS | 7 | 68 | 33 | 575 |
HTML | 1 | 7 | 7 | 22 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
It is recommended to fix the following
- Method cyclomatic complexity should be reduced to less than 100 (currently 212)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 131.67 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 356.00 |
Average method complexity | 7.80 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 212.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 53 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 56 | |
▷ Named functions | 55 | 98.21% |
▷ Anonymous functions | 1 | 1.79% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 1 test
Image compression Passed 1 test
All PNG images should be compressed to minimize bandwidth usage for end users
19 PNG files occupy 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
plugins/custom_plugins/advimage.png | 3.05KB | 0.64KB | ▼ 79.05% |
plugins/advlink/images/advlink.png | 3.02KB | 0.52KB | ▼ 82.67% |
plugins/custom_plugins/clker.png | 3.65KB | 0.98KB | ▼ 73.14% |
images/close_banner.png | 0.44KB | 0.49KB | 0.00% |
plugins/custom_plugins/formatPainter.png | 3.20KB | 0.63KB | ▼ 80.36% |