84% zapier

Code Review | Zapier for WordPress

WordPress plugin Zapier for WordPress scored84%from 54 tests.

About plugin

  • Plugin page: zapier
  • Plugin version: 1.0.4
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.9
  • WordPress version: 6.3.1
  • First release: May 22, 2020
  • Latest release: Mar 8, 2022
  • Number of updates: 17
  • Update frequency: every 39.0 days
  • Top authors: zapier (100%)

Code review

54 tests

User reviews

55 reviews

Install metrics

40,000+ active /198,460 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▲0.14ms] Passed 4 tests

An overview of server-side resources used by Zapier for WordPress
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0844.38 ▲7.06
Dashboard /wp-admin3.38 ▲0.0844.34 ▼2.18
Posts /wp-admin/edit.php3.50 ▲0.1446.46 ▲1.06
Add New Post /wp-admin/post-new.php5.97 ▲0.0892.15 ▲1.73
Media Library /wp-admin/upload.php3.30 ▲0.0734.02 ▼0.03

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

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

Browser metrics Passed 4 tests

Checking browser requirements for Zapier for WordPress
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.24 ▼1.171.83 ▲0.1839.11 ▼2.30
Dashboard /wp-admin2,206 ▲205.77 ▼0.1496.22 ▼7.4138.36 ▼4.42
Posts /wp-admin/edit.php2,089 ▼32.00 ▼0.0239.42 ▼2.8034.22 ▼3.59
Add New Post /wp-admin/post-new.php1,542 ▲1418.56 ▲0.61601.49 ▼54.0752.60 ▼1.91
Media Library /wp-admin/upload.php1,388 ▼04.30 ▲0.0895.65 ▼1.1643.40 ▼1.60

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
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
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 register_activation_hook() in wp-content/plugins/zapier/zapier.php:197

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
5 plugin tags: zapier, dataflow, workflow, integration, automation

zapier/zapier.php 92% from 13 tests

The primary PHP file in "Zapier for WordPress" version 1.0.4 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 206 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin1,147 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP13171414892
Markdown1320168
JSON20087

PHP code Passed 2 tests

Analyzing 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.45
Average class complexity14.40
▷ Minimum class complexity1.00
▷ Maximum class complexity57.00
Average method complexity3.48
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods55
▷ Static methods2138.18%
▷ Public methods4276.36%
▷ Protected methods00.00%
▷ Private methods1323.64%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants3
▷ Global constants00.00%
▷ Class constants3100.00%
▷ Public constants3100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin