84% customize-inline-editing

Code Review | Customize Inline Editing

WordPress plugin Customize Inline Editing scored84%from 54 tests.

About plugin

  • Plugin page: customize-inline-...
  • Plugin version: 0.2.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7.0+
  • WordPress version: 6.3.1
  • First release: Sep 19, 2014
  • Latest release: Aug 5, 2017
  • Number of updates: 18
  • Update frequency: every 58.3 days
  • Top authors: westonruter (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /3,441 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.73ms] Passed 4 tests

An overview of server-side resources used by Customize Inline Editing
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0140.93 ▲1.03
Dashboard /wp-admin3.32 ▲0.0245.20 ▼1.90
Posts /wp-admin/edit.php3.37 ▲0.0145.50 ▲0.75
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.38 ▼21.76
Media Library /wp-admin/upload.php3.24 ▲0.0130.62 ▼4.00

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Customize Inline Editing
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.43 ▲0.151.71 ▼0.0942.45 ▲2.31
Dashboard /wp-admin2,195 ▲215.54 ▼0.0680.22 ▼9.6141.90 ▲1.62
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0735.58 ▲0.0734.65 ▼2.50
Add New Post /wp-admin/post-new.php1,526 ▼923.31 ▲4.90652.28 ▲31.3654.59 ▼9.22
Media Library /wp-admin/upload.php1,400 ▼04.22 ▲0.0399.38 ▲1.4246.49 ▲3.09

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% 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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/customize-inline-editing/customize-inline-editing.php:40

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
  • Tested up to: Version not formatted correctly
The official readme.txt is a good inspiration

customize-inline-editing/customize-inline-editing.php Passed 13 tests

The main file in "Customize Inline Editing" v. 0.2.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
67 characters long description:
Demonstration of how inline editing can be added to the Customizer.

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
Everything looks great! No dangerous files found in this plugin241 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript351107191
PHP1105050

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity5.00
▷ Minimum class complexity5.00
▷ Maximum class complexity5.00
Average method complexity1.80
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin