10% wp-live-edit

Code Review | WP Live Edit

WordPress plugin WP Live Edit scored10%from 54 tests.

About plugin

  • Plugin page: wp-live-edit
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 2.6-3.4.1
  • WordPress version: 6.3.1
  • First release: Sep 5, 2012
  • Latest release: Oct 4, 2012
  • Number of updates: 9
  • Update frequency: every 3.2 days
  • Top authors: olekenneth (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /4,163 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.384.38 ▼50.70
Dashboard /wp-admin2.10 ▼1.206.33 ▼39.73
Posts /wp-admin/edit.php2.10 ▼1.266.30 ▼42.21
Add New Post /wp-admin/post-new.php2.10 ▼3.796.70 ▼99.87
Media Library /wp-admin/upload.php2.10 ▼1.135.19 ▼30.54
Live Edit /wp-admin/options-general.php?page=liveEdit2.106.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.31 ▼1.091.79 ▼0.0443.76 ▼0.20
Dashboard /wp-admin2,210 ▲255.85 ▲0.01100.38 ▼6.5739.03 ▼5.99
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0439.29 ▼5.0435.99 ▼1.86
Add New Post /wp-admin/post-new.php1,536 ▲623.21 ▲4.86604.76 ▲5.8350.56 ▼6.97
Media Library /wp-admin/upload.php1,395 ▲74.20 ▼0.0596.69 ▼8.7840.75 ▼2.08
Live Edit /wp-admin/options-general.php?page=liveEdit7842.0226.1927.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

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.)
Please take inspiration from this readme.txt

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:
LanguageFilesBlank linesComment linesLines of code
PHP123899
JavaScript16840
CSS11014

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 code0.27
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
screenshot-2.png54.64KB17.14KB▼ 68.64%
screenshot-1.png58.01KB18.07KB▼ 68.84%