78% as-zippy-courses-sendfox-integration

Code Review | AS Sendfox Opt-In Integration with Zippy Courses

WordPress plugin AS Sendfox Opt-In Integration with Zippy Courses scored78%from 54 tests.

About plugin

  • Plugin page: as-zippy-courses-...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.3.2
  • WordPress version: 6.3.1
  • First release: Feb 8, 2020
  • Latest release: Feb 8, 2020
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: aksharsoftsolutions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /430 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 gracefully, with no errors

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

Server-side resources used by AS Sendfox Opt-In Integration with Zippy Courses
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0040.07 ▼1.28
Dashboard /wp-admin3.35 ▲0.0049.69 ▼7.97
Posts /wp-admin/edit.php3.40 ▲0.0047.07 ▼5.04
Add New Post /wp-admin/post-new.php5.93 ▲0.0084.94 ▼17.93
Media Library /wp-admin/upload.php3.27 ▲0.0040.37 ▲1.81

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

An overview of browser requirements for AS Sendfox Opt-In Integration with Zippy Courses
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.23 ▲0.291.78 ▲0.1044.00 ▼0.06
Dashboard /wp-admin2,195 ▲245.52 ▼0.0286.71 ▼4.9839.50 ▼0.91
Posts /wp-admin/edit.php2,103 ▲32.00 ▼0.0142.36 ▲6.9637.77 ▲2.20
Add New Post /wp-admin/post-new.php1,526 ▼023.54 ▲0.24705.77 ▲6.3853.36 ▲1.33
Media Library /wp-admin/upload.php1,400 ▼04.21 ▲0.02114.06 ▼2.1346.99 ▼2.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
  • 4× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/as-zippy-courses-sendfox-integration/assets/views/metaboxes/product-sendfox.php
    • > /wp-content/plugins/as-zippy-courses-sendfox-integration/assets/views/metaboxes/product-convertkit.php
    • > /wp-content/plugins/as-zippy-courses-sendfox-integration/assets/views/metaboxes/course-sendfox.php
    • > /wp-content/plugins/as-zippy-courses-sendfox-integration/assets/views/metaboxes/course-convertkit.php
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'Zippy_EmailListIntegration' not found in wp-content/plugins/as-zippy-courses-sendfox-integration/integration.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/as-zippy-courses-sendfox-integration/zippy-sendfox-kit.php:21
    • > PHP Fatal error
      Uncaught Error: Class 'Zippy_EmailListIntegrationAPI' not found in wp-content/plugins/as-zippy-courses-sendfox-integration/lib/API.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Zippy_EmailList' not found in wp-content/plugins/as-zippy-courses-sendfox-integration/lib/EmailList.php:3

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: zippycourse, sendfox, zippy

as-zippy-courses-sendfox-integration/zippy-sendfox-kit.php 85% from 13 tests

The main PHP file in "AS Sendfox Opt-In Integration with Zippy Courses" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
  • Main file name: The principal plugin file should be the same as the plugin slug ("as-zippy-courses-sendfox-integration.php" instead of "zippy-sendfox-kit.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin283 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP67787250
PO File19933

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.25
Average class complexity8.67
▷ Minimum class complexity1.00
▷ Maximum class complexity19.00
Average method complexity1.96
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods24
▷ Static methods00.00%
▷ Public methods2395.83%
▷ Protected methods14.17%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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 are no PNG files in this plugin