10% wp-inline-edit

Code Review | WP Inline Edit

WordPress plugin WP Inline Edit scored 10% from 54 tests.

About plugin

  • Plugin page: wp-inline-edit
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8
  • WordPress version: 6.3.1
  • First release: Jul 28, 2012
  • Latest release: Jan 18, 2014
  • Number of updates: 19
  • Update frequency: every 28.8 days
  • Top authors: sorcererayush (73.68%)webgarb (31.58%)

Code review

54 tests

User reviews

7 reviews

Install metrics

50+ active / 9,456 total downloads

Benchmarks

Plugin footprint 58% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/wp-inline-edit/wp-inline-edit.php+281
    Function create_function() is deprecated

Server metrics [RAM: ▲0.04MB] [CPU: ▼4.54ms] Passed 4 tests

Server-side resources used by WP Inline Edit
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0536.12 ▼9.47
Dashboard /wp-admin3.34 ▲0.0446.93 ▲1.07
Posts /wp-admin/edit.php3.39 ▲0.0448.03 ▲0.27
Add New Post /wp-admin/post-new.php5.92 ▲0.0492.95 ▼10.03
Media Library /wp-admin/upload.php3.26 ▲0.0435.65 ▲3.17

Server storage [IO: ▲0.10MB] [DB: ▲0.00MB] Passed 3 tests

Filesystem and database footprint
No storage issues were detected
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
wp_inline_edit_install
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WP Inline Edit
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,926 ▲19114.17 ▼0.206.58 ▲4.7037.89 ▼7.89
Dashboard /wp-admin2,203 ▲124.88 ▼0.00106.82 ▲0.2743.84 ▲3.11
Posts /wp-admin/edit.php2,089 ▼32.05 ▲0.0239.34 ▼3.6233.44 ▼4.27
Add New Post /wp-admin/post-new.php1,539 ▲618.35 ▼4.95601.55 ▲10.9757.79 ▲7.05
Media Library /wp-admin/upload.php1,385 ▼64.22 ▲0.0296.25 ▼6.2141.21 ▼1.16

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • wp_inline_edit_install
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-inline-edit/wp-inline-edit.php:20

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Loader), #2 (Title Inline editing)
The official readme.txt is a good inspiration

wp-inline-edit/wp-inline-edit.php Passed 13 tests

The main PHP script in "WP Inline Edit" version 1.3 is automatically included on every request by WordPress
136 characters long description:
Wp Inline Edit will add ability to author/admin/editor to edit your post/page from page/post itself without going to wp-admin edit page.

Code Analysis Passed 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
There were no executable files found in this plugin307 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP13677224
JavaScript210745
CSS10038

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.07MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png28.01KB19.09KB▼ 31.84%
screenshot-2.png23.14KB15.91KB▼ 31.27%
images/logo.png6.52KB3.70KB▼ 43.21%
screenshot-3.png15.24KB10.17KB▼ 33.24%