10% mycred-zapier

Code Review | myCred - Zapier Integration

WordPress plugin myCred - Zapier Integration scored10%from 54 tests.

About plugin

  • Plugin page: mycred-zapier
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: WP 5.8-6.3.2
  • WordPress version: 6.3.1
  • First release: Mar 14, 2022
  • Latest release: Nov 7, 2023
  • Number of updates: 14
  • Update frequency: every 44.9 days
  • Top authors: wpexpertsio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /1,566 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • Install procedure had errors
    • > Error in wp-content/plugins/mycred-zapier/includes/mycred-zapier-functions.php+30
    Uncaught Error: Call to undefined function mycred_update_option() in wp-content/plugins/mycred-zapier/includes/mycred-zapier-functions.php:30
    Stack trace:
    #0 wp-includes/class-wp-hook.php(310): create_mycred_zapier_table()
    #1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
    #2 wp-includes/plugin.php(517): WP_Hook->do_action()
    #3 wp-admin/includes/plugin.php(693): do_action()

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.43ms] Passed 4 tests

Analyzing server-side resources used by myCred - Zapier Integration
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0036.98 ▼6.66
Dashboard /wp-admin3.31 ▲0.0047.79 ▼4.29
Posts /wp-admin/edit.php3.36 ▲0.0048.77 ▲1.65
Add New Post /wp-admin/post-new.php5.89 ▲0.0094.16 ▼10.89
Media Library /wp-admin/upload.php3.23 ▲0.0034.80 ▼3.87

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: 1 new table, 6 new options
New tables
wp_mycred_zapier
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for myCred - Zapier Integration
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,790 ▲2814.23 ▼0.481.62 ▼0.0437.64 ▼8.48
Dashboard /wp-admin2,195 ▲185.65 ▲0.0783.58 ▼11.0740.63 ▼3.76
Posts /wp-admin/edit.php2,100 ▼02.02 ▼0.0039.45 ▲0.5835.97 ▲2.03
Add New Post /wp-admin/post-new.php1,526 ▼922.89 ▼2.19596.98 ▼23.8375.62 ▲15.92
Media Library /wp-admin/upload.php1,403 ▲34.18 ▼0.0297.07 ▼0.4342.18 ▼1.62

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_mycred_zapier
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% 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
Please take a closer look at the following
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/mycred-zapier/includes/class-mycred-zapier.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mycred-zapier/includes/mycred-zapier-api.php:9

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: zapier, automation, mycred, points system, integration

mycred-zapier/mycred-zapier.php 92% from 13 tests

The main PHP file in "myCred - Zapier Integration" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Requires at least: Required version number should use periods and dots only (ex. "7.0" instead of "WP 5.8")

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
Everything looks great! No dangerous files found in this plugin480 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP419026456
JavaScript1101224

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity13.67
▷ Minimum class complexity2.00
▷ Maximum class complexity33.00
Average method complexity2.65
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods23
▷ Static methods14.35%
▷ Public methods2295.65%
▷ Protected methods00.00%
▷ Private methods14.35%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants6100.00%
▷ Class constants00.00%
▷ Public constants00.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