78% extendify

Code Review | Extendify — Gutenberg Patterns and Templates

WordPress plugin Extendify — Gutenberg Patterns and Templates scored78%from 54 tests.

About plugin

  • Plugin page: extendify
  • Plugin version: 1.11.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0-6.4
  • WordPress version: 6.3.1
  • First release: Jan 6, 2022
  • Latest release: Nov 27, 2023
  • Number of updates: 60
  • Update frequency: every 12.0 days
  • Top authors: extendify (98.33%)lukecarbis (3.33%)

Code review

54 tests

User reviews

8 reviews

Install metrics

100,000+ active /1,909,026 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.46MB] [CPU: ▼3.02ms] Passed 4 tests

An overview of server-side resources used by Extendify — Gutenberg Patterns and Templates
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.95 ▲0.4842.90 ▲2.55
Dashboard /wp-admin3.80 ▲0.4551.60 ▼11.55
Posts /wp-admin/edit.php3.85 ▲0.4954.59 ▲8.42
Add New Post /wp-admin/post-new.php6.45 ▲0.5690.73 ▼4.16
Media Library /wp-admin/upload.php3.66 ▲0.4238.90 ▲1.09
Library /wp-admin/admin.php?page=extendify-welcome3.6233.32
Assist /wp-admin/admin.php?page=extendify-assist3.6233.66
Extendify /wp-admin/admin.php?page=extendify-admin-page2.468.71

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 527 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded
extendify_first_installed_version
widget_recent-comments
extendify_site_id

Browser metrics Passed 4 tests

A check of browser resources used by Extendify — Gutenberg Patterns and Templates
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲10114.67 ▲0.351.55 ▼0.0837.36 ▼1.51
Dashboard /wp-admin2,245 ▲685.60 ▼0.0395.61 ▲5.8543.00 ▲6.82
Posts /wp-admin/edit.php2,147 ▲441.99 ▼0.0139.15 ▲1.9334.56 ▲2.50
Add New Post /wp-admin/post-new.php1,572 ▲4623.57 ▲0.07691.59 ▲55.5867.37 ▲20.70
Media Library /wp-admin/upload.php1,447 ▲474.30 ▲0.1199.21 ▼2.2540.57 ▼2.67
Library /wp-admin/admin.php?page=extendify-welcome9032.1433.7835.06
Assist /wp-admin/admin.php?page=extendify-assist7992.2023.3221.86
Extendify /wp-admin/admin.php?page=extendify-admin-page9082.1423.8429.12

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
  • The uninstall procedure has failed, leaving 8 options in the database
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • extendify_site_id
    • theysaidso_admin_options
    • extendify_first_installed_version

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 0% 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
  • 19× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
    • > /wp-content/plugins/extendify/app/Assist/Controllers/QuickLinksController.php
    • > /wp-content/plugins/extendify/routes/api.php
    • > /wp-content/plugins/extendify/app/Launch/Controllers/UserSelectionController.php
    • > /wp-content/plugins/extendify/app/Assist/Controllers/SupportArticlesController.php
    • > /wp-content/plugins/extendify/app/Assist/Controllers/GlobalsController.php
    • > /wp-content/plugins/extendify/app/Chat/Controllers/ChatController.php
    • > /wp-content/plugins/extendify/app/Assist/Controllers/RecommendationsController.php
    • > /wp-content/plugins/extendify/app/Draft/Controllers/DraftController.php
    • > /wp-content/plugins/extendify/app/Launch/Controllers/DataController.php
    • > /wp-content/plugins/extendify/app/Launch/Controllers/WPController.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_REST_Controller' not found in wp-content/plugins/extendify/app/ApiRouter.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

extendify/extendify.php 85% from 13 tests

This is the main PHP file of "Extendify — Gutenberg Patterns and Templates" version 1.11.2, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 200 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin29,772 lines of code in 476 files:
LanguageFilesBlank linesComment linesLines of code
PO File226,88612,84814,082
JSX1445491177,298
JavaScript873042044,484
PHP516381,4622,956
CSS1412414738
JSON15830214

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity9.21
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity2.88
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces13
Interfaces0
Traits0
Classes39
▷ Abstract classes00.00%
▷ Concrete classes39100.00%
▷ Final classes12.56%
Methods155
▷ Static methods5636.13%
▷ Public methods13486.45%
▷ Protected methods127.74%
▷ Private methods95.81%
Functions40
▷ Named functions12.50%
▷ Anonymous functions3997.50%
Constants6
▷ Global constants583.33%
▷ Class constants116.67%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
7 PNG files occupy 0.43MB with 0.19MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/assets/preview.png7.85KB8.61KB0.00%
public/assets/logo-tips.png2.53KB1.39KB▼ 45.01%
public/assets/wp-admin.png209.73KB62.09KB▼ 70.39%
public/assets/pro-image.png20.39KB10.10KB▼ 50.46%
public/assets/modal-extendify-purple.png20.35KB9.76KB▼ 52.03%