78% quick-edit

Code Review | Post and Page Quick Editing

WordPress plugin Post and Page Quick Editing scored78%from 54 tests.

About plugin

  • Plugin page: quick-edit
  • Plugin version: 1.6.3
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.2.2
  • WordPress version: 6.3.1
  • First release: Aug 18, 2019
  • Latest release: Jul 26, 2023
  • Number of updates: 12
  • Update frequency: every 119.8 days
  • Top authors: binsaifullah (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /959 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.20MB] [CPU: ▲1.85ms] Passed 4 tests

Analyzing server-side resources used by Post and Page Quick Editing
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2037.35 ▼1.95
Dashboard /wp-admin3.51 ▲0.2047.66 ▲1.48
Posts /wp-admin/edit.php3.62 ▲0.2649.72 ▲4.42
Add New Post /wp-admin/post-new.php6.08 ▲0.2092.99 ▲4.13
Media Library /wp-admin/upload.php3.43 ▲0.2038.14 ▲3.75

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Post and Page Quick Editing
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲10113.76 ▼0.591.77 ▲0.1341.61 ▼6.12
Dashboard /wp-admin2,242 ▲574.87 ▼1.01110.72 ▲10.3038.13 ▼4.50
Posts /wp-admin/edit.php2,089 ▼02.01 ▼0.1439.85 ▲1.6236.26 ▲1.35
Add New Post /wp-admin/post-new.php6,216 ▲4,68125.89 ▲2.67924.26 ▲240.6653.39 ▼8.22
Media Library /wp-admin/upload.php1,388 ▼34.21 ▼0.01104.18 ▲3.0943.03 ▼1.90

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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 perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/quick-edit/quick-edit.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/quick-edit/lib/appsero/vendor/tareq1988/wp-php-cs-fixer/loader.php' (include_path='.:/usr/share/php') in wp-content/plugins/quick-edit/lib/appsero/.php-cs-fixer.dist.php on line 3
    • > PHP Warning
      require_once(wp-content/plugins/quick-edit/lib/appsero/vendor/tareq1988/wp-php-cs-fixer/loader.php): failed to open stream: No such file or directory in wp-content/plugins/quick-edit/lib/appsero/.php-cs-fixer.dist.php on line 3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
2 plugin tags: widget, dashboard widget

quick-edit/quick-edit.php 85% from 13 tests

Analyzing the main PHP file in "Post and Page Quick Editing" version 1.6.3
The following require your attention:
  • Domain Path: The domain path folder was not found ("/languages")
  • Description: The description should be shorter than 140 characters (currently 217 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected2,121 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP74316771,694
Markdown1820255
XML161195
JSON10045
YAML16032

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity42.60
▷ Minimum class complexity9.00
▷ Maximum class complexity86.00
Average method complexity3.10
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods99
▷ Static methods11.01%
▷ Public methods6464.65%
▷ Protected methods66.06%
▷ Private methods2929.29%
Functions1
▷ Named functions1100.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
PNG images were not found in this plugin