84% quick-add-child

Code Review | Quick Add Child

WordPress plugin Quick Add Child scored84%from 54 tests.

About plugin

  • Plugin page: quick-add-child
  • Plugin version: 0.7.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.1.1
  • WordPress version: 6.3.1
  • First release: Jun 29, 2014
  • Latest release: Feb 27, 2015
  • Number of updates: 6
  • Update frequency: every 40.5 days
  • Top authors: 1fixdotio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,138 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼5.73ms] Passed 4 tests

Analyzing server-side resources used by Quick Add Child
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.66 ▼1.03
Dashboard /wp-admin3.33 ▲0.0345.61 ▲0.18
Posts /wp-admin/edit.php3.38 ▲0.0243.10 ▼7.25
Add New Post /wp-admin/post-new.php5.91 ▲0.0285.01 ▼14.81
Media Library /wp-admin/upload.php3.25 ▲0.0235.44 ▲0.49
Quick Add Child /wp-admin/options-general.php?page=quick-add-child3.2429.60

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
quick-add-child
db_upgraded
widget_theysaidso_widget
qac-display-activation-message
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Quick Add Child
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.21 ▼1.571.72 ▼0.1242.11 ▲0.49
Dashboard /wp-admin2,213 ▲255.86 ▼0.03103.78 ▲1.9338.19 ▼3.39
Posts /wp-admin/edit.php2,093 ▲42.18 ▲0.1835.57 ▼5.6334.28 ▼1.08
Add New Post /wp-admin/post-new.php1,517 ▼1717.85 ▼5.41663.99 ▲39.2361.81 ▲13.40
Media Library /wp-admin/upload.php1,395 ▲74.20 ▼0.0393.29 ▼12.6341.04 ▼4.48
Quick Add Child /wp-admin/options-general.php?page=quick-add-child7822.0330.9633.24

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
Please fix the following items
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/quick-add-child/admin/views/admin.php:18
    • > PHP Fatal error
      Uncaught Error: Class 'Quick_Add_Child' not found in wp-content/plugins/quick-add-child/admin/includes/settings.php:34

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)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
3 plugin tags: cpt, child post, pages

quick-add-child/quick-add-child.php Passed 13 tests

The main PHP file in "Quick Add Child" ver. 0.7.0 adds more information about the plugin and also serves as the entry point for this plugin
62 characters long description:
Add child posts right from a hierarchical post editing screen.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected353 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP7163344297
PO File1101044
JavaScript15012

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity10.67
▷ Minimum class complexity4.00
▷ Maximum class complexity18.00
Average method complexity2.16
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods25
▷ Static methods832.00%
▷ Public methods1976.00%
▷ Protected methods00.00%
▷ Private methods624.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin