84% custom-wp-zapier

Code Review | Custom WP Zapier

WordPress plugin Custom WP Zapier scored 84% from 54 tests.

About plugin

  • Plugin page: custom-wp-zapier
  • Plugin version: 1.3.7
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.0
  • WordPress version: 6.3.1
  • First release: Jul 13, 2022
  • Latest release: Oct 15, 2022
  • Number of updates: 12
  • Update frequency: every 7.8 days
  • Top authors: sahibzkhan (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active / 1,219 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.06MB] [CPU: ▼13.41ms] Passed 4 tests

An overview of server-side resources used by Custom WP Zapier
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.10 ▲0.6341.44 ▼2.54
Dashboard /wp-admin3.94 ▲0.6447.23 ▲2.61
Posts /wp-admin/edit.php3.99 ▲0.6352.33 ▲6.23
Add New Post /wp-admin/post-new.php3.75 ▼2.1340.52 ▼55.17
Media Library /wp-admin/upload.php3.86 ▲0.6337.85 ▲1.47
Custom Wp Zapier /wp-admin/options-general.php?page=custom_wp_zapier_settings_main_admin3.7734.34

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
CUSTOM_WP_ZAPIER_SETTINGS

Browser metrics Passed 4 tests

Checking browser requirements for Custom WP Zapier
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,443 ▲67213.55 ▼0.841.61 ▼0.4943.13 ▼1.13
Dashboard /wp-admin2,829 ▲6415.35 ▲0.48111.00 ▲1.7137.30 ▼1.80
Posts /wp-admin/edit.php2,720 ▲6312.47 ▲0.4244.98 ▲8.5132.98 ▼4.42
Add New Post /wp-admin/post-new.php1,530 ▼323.36 ▲0.04674.94 ▲8.5653.70 ▼5.42
Media Library /wp-admin/upload.php2,011 ▲6264.45 ▲0.29104.07 ▲6.6343.75 ▲0.01
Custom Wp Zapier /wp-admin/options-general.php?page=custom_wp_zapier_settings_main_admin1,6542.3034.4430.81

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
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not 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
The following issues need your attention
  • 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/post.php' (include_path='.:/usr/share/php') in wp-content/plugins/custom-wp-zapier/custom-wp-zapier-rest-settings.php on line 14
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/formatting.php' (include_path='.:/usr/share/php') in wp-content/plugins/custom-wp-zapier/custom-wp-zapier-utils.php on line 4
    • > PHP Warning
      require_once(ABSPATH/wp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/custom-wp-zapier/custom-wp-zapier-dependency-check.php on line 14
    • > PHP Fatal error
      Uncaught Error: Class 'CustomWpZapier\\UserActivity\\UserActivity_Query' not found in wp-content/plugins/custom-wp-zapier/custom-wp-zapier-user-activity-user-query.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function CustomWpZapier\\Settings\\is_admin() in wp-content/plugins/custom-wp-zapier/custom-wp-zapier-settings.php:209
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/post.php): failed to open stream: No such file or directory in wp-content/plugins/custom-wp-zapier/custom-wp-zapier-rest-settings.php on line 14
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/formatting.php): failed to open stream: No such file or directory in wp-content/plugins/custom-wp-zapier/custom-wp-zapier-utils.php on line 4
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-wp-zapier/custom-wp-zapier-utils.php on line 4
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/custom-wp-zapier/custom-wp-zapier-dependency-check.php on line 14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function CustomWpZapier\\Hooks\\add_filter() in wp-content/plugins/custom-wp-zapier/custom-wp-zapier-hooks.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3 in custom-wp-zapier/assets to your readme.txt
You can look at the official readme.txt

custom-wp-zapier/entry.php 92% from 13 tests

The main file in "Custom WP Zapier" v. 1.3.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("custom-wp-zapier.php" instead of "entry.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin3,725 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
PHP164924193,134
JavaScript3190293
CSS112247
JSON10051

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.36
Average class complexity25.87
▷ Minimum class complexity1.00
▷ Maximum class complexity132.00
Average method complexity3.22
▷ Minimum method complexity1.00
▷ Maximum method complexity34.00
Code structure
Namespaces5
Interfaces0
Traits0
Classes15
▷ Abstract classes00.00%
▷ Concrete classes15100.00%
▷ Final classes00.00%
Methods164
▷ Static methods5432.93%
▷ Public methods10060.98%
▷ Protected methods4426.83%
▷ Private methods2012.20%
Functions15
▷ Named functions640.00%
▷ Anonymous functions960.00%
Constants4
▷ Global constants375.00%
▷ Class constants125.00%
▷ 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
There were not PNG files found in your plugin