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
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/wp-live-edit/live-edit.php+11
Methods with the same name as their class will not be constructors in a future version of PHP; liveEdit has a deprecated constructor
Server metrics [RAM: ▼1.91MB] [CPU: ▼58.13ms] Passed 4 tests
Analyzing server-side resources used by WP Live Edit
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.08 ▼1.38 | 4.38 ▼50.70 |
Dashboard /wp-admin | 2.10 ▼1.20 | 6.33 ▼39.73 |
Posts /wp-admin/edit.php | 2.10 ▼1.26 | 6.30 ▼42.21 |
Add New Post /wp-admin/post-new.php | 2.10 ▼3.79 | 6.70 ▼99.87 |
Media Library /wp-admin/upload.php | 2.10 ▼1.13 | 5.19 ▼30.54 |
Live Edit /wp-admin/options-general.php?page=liveEdit | 2.10 | 6.29 |
Server storage [IO: ▲0.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 8 new options
New WordPress options |
---|
liveEdit_title_class |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
liveEdit_content_class |
widget_recent-posts |
Browser metrics Passed 4 tests
A check of browser resources used by WP Live Edit
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,829 ▲83 | 13.31 ▼1.09 | 1.79 ▼0.04 | 43.76 ▼0.20 |
Dashboard /wp-admin | 2,210 ▲25 | 5.85 ▲0.01 | 100.38 ▼6.57 | 39.03 ▼5.99 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▲0.04 | 39.29 ▼5.04 | 35.99 ▼1.86 |
Add New Post /wp-admin/post-new.php | 1,536 ▲6 | 23.21 ▲4.86 | 604.76 ▲5.83 | 50.56 ▼6.97 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.20 ▼0.05 | 96.69 ▼8.78 | 40.75 ▼2.08 |
Live Edit /wp-admin/options-general.php?page=liveEdit | 784 | 2.02 | 26.19 | 27.77 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/wp-live-edit/live-edit.php+11
Methods with the same name as their class will not be constructors in a future version of PHP; liveEdit has a deprecated constructor
- Zombie WordPress options were found after uninstall: 8 options
- can_compress_scripts
- widget_recent-comments
- theysaidso_admin_options
- liveEdit_content_class
- widget_recent-posts
- db_upgraded
- liveEdit_title_class
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=liveEdit
- > Deprecated in wp-content/plugins/wp-live-edit/live-edit.php+11
Methods with the same name as their class will not be constructors in a future version of PHP; liveEdit has a deprecated constructor
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 errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-live-edit/live-edit.php:93
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Screenshots: Please add images for these screenshots: #1 (WP Live edit in action.), #2 (Settings panel.)
wp-live-edit/live-edit.php 85% from 13 tests
The main PHP script in "WP Live Edit" version 1.1 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("wp-live-edit.php" instead of "live-edit.php")
- Description: Please don't use more than 140 characters for the plugin description (currently 198 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin153 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 23 | 8 | 99 |
JavaScript | 1 | 6 | 8 | 40 |
CSS | 1 | 1 | 0 | 14 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of 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.27 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 9.00 |
Average method complexity | 2.33 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 4.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
2 PNG files occupy 0.11MB with 0.08MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 54.64KB | 17.14KB | ▼ 68.64% |
screenshot-1.png | 58.01KB | 18.07KB | ▼ 68.84% |