83% integration-of-caldera-forms-and-paystack

Code Review | Integration of Caldera Forms and Paystack

WordPress plugin Integration of Caldera Forms and Paystack scored83%from 54 tests.

About plugin

  • Plugin page: integration-of-ca...
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.6.2
  • WordPress version: 6.3.1
  • First release: Mar 4, 2021
  • Latest release: Mar 4, 2021
  • Number of updates: 9
  • Update frequency: every 0.1 days
  • Top authors: crystalwebpro (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /657 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼10.67ms] Passed 4 tests

A check of server-side resources used by Integration of Caldera Forms and Paystack
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0340.73 ▼6.87
Dashboard /wp-admin3.34 ▼0.0149.98 ▼15.71
Posts /wp-admin/edit.php3.39 ▲0.0355.56 ▲4.60
Add New Post /wp-admin/post-new.php5.92 ▲0.0386.22 ▼20.66
Media Library /wp-admin/upload.php3.26 ▲0.0335.77 ▲0.57

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Integration of Caldera Forms and Paystack: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.34 ▼0.021.93 ▲0.2549.07 ▲6.29
Dashboard /wp-admin2,195 ▲215.66 ▼0.0088.66 ▼11.4236.89 ▼6.78
Posts /wp-admin/edit.php2,100 ▼01.97 ▲0.0039.76 ▼1.8234.92 ▼1.32
Add New Post /wp-admin/post-new.php1,526 ▼923.68 ▲5.38687.74 ▲37.4755.50 ▼12.49
Media Library /wp-admin/upload.php1,400 ▼04.23 ▼0.0397.21 ▼6.0442.44 ▼0.91

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options

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 no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/integration-of-caldera-forms-and-paystack/inc/config.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: caldera paystack addons, caldera payment, paystack, caldera paystack, nigeria

integration-of-caldera-forms-and-paystack/integration-of-caldera-forms-and-paystack.php 69% from 13 tests

This is the main PHP file of "Integration of Caldera Forms and Paystack" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("/")
  • Domain Path: Please prefix the domain path with a forward slash character ("//")
  • Description: Please don't use more than 140 characters for the plugin description (currently 208 characters long)
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6

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
Success! There were no dangerous files found in this plugin206 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP46694206

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity3.86
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods114.29%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.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
No PNG files were detected