78% cf7-submit-animations

Code Review | CF7 Submit Animations

WordPress plugin CF7 Submit Animations scored78%from 54 tests.

About plugin

  • Plugin page: cf7-submit-animat...
  • Plugin version: 1.3
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.8
  • WordPress version: 6.3.1
  • First release: Jul 8, 2021
  • Latest release: Jul 16, 2021
  • Number of updates: 13
  • Update frequency: every 0.6 days
  • Top authors: greyhatch (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /508 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▼3.89ms] Passed 4 tests

This is a short check of server-side resources used by CF7 Submit Animations
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.62 ▲0.1640.85 ▲1.81
Dashboard /wp-admin3.53 ▲0.2247.06 ▼1.50
Posts /wp-admin/edit.php3.58 ▲0.2244.22 ▼2.52
Add New Post /wp-admin/post-new.php6.05 ▲0.1680.57 ▼12.52
Media Library /wp-admin/upload.php3.39 ▲0.1636.03 ▲0.97

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 32 new files
Database: no new tables, 7 new options
New WordPress options
cf7_submit_animations
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for CF7 Submit Animations
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,857 ▲8614.21 ▼0.526.41 ▲4.5541.97 ▲1.99
Dashboard /wp-admin2,207 ▲335.60 ▲0.0291.10 ▲4.3938.33 ▼1.65
Posts /wp-admin/edit.php2,112 ▲122.02 ▲0.0042.34 ▲2.8739.91 ▲6.04
Add New Post /wp-admin/post-new.php1,536 ▲1022.98 ▼0.17624.79 ▼49.6158.24 ▼16.86
Media Library /wp-admin/upload.php1,409 ▲94.18 ▼0.01102.95 ▼6.4345.17 ▼1.67

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded

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
Everything seems fine, however this is by no means 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
Please fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/cf7-submit-animations/cf7-submit-animations.php
  • 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'Cf7subanimsinc\\Base\\BaseController' not found in wp-content/plugins/cf7-submit-animations/cf7subanimsinc/Api/Callbacks/AdminCallbacks.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Cf7subanimsinc\\Base\\BaseController' not found in wp-content/plugins/cf7-submit-animations/cf7subanimsinc/Base/SetCookies.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/cf7-submit-animations/templates/admin.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Cf7subanimsinc\\Base\\BaseController' not found in wp-content/plugins/cf7-submit-animations/cf7subanimsinc/Pages/Dashboard.php:13
    • > PHP Fatal error
      Uncaught Error: Class 'Cf7subanimsinc\\Base\\BaseController' not found in wp-content/plugins/cf7-submit-animations/cf7subanimsinc/Base/Activate.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Cf7subanimsinc\\Base\\BaseController' not found in wp-content/plugins/cf7-submit-animations/cf7subanimsinc/Base/Enqueue.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'Cf7subanimsinc\\Base\\BaseController' not found in wp-content/plugins/cf7-submit-animations/cf7subanimsinc/Base/PluginSettingsLink.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
8 plugin tags: contact, contact form, feedback, submit effect, paticle effect...

cf7-submit-animations/cf7-submit-animations.php 92% from 13 tests

The principal PHP file in "CF7 Submit Animations" v. 1.3 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Requires at least: The required version number must match the one declared in readme.txt ("5.5" instead of "5.0")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,144 lines of code in 29 files:
LanguageFilesBlank linesComment linesLines of code
PHP232193401,034
JavaScript28163
CSS16027
JSON20014
YAML1006

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity9.93
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.74
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes14
▷ Abstract classes00.00%
▷ Concrete classes14100.00%
▷ Final classes214.29%
Methods73
▷ Static methods2331.51%
▷ Public methods7095.89%
▷ Protected methods00.00%
▷ Private methods34.11%
Functions4
▷ Named functions375.00%
▷ Anonymous functions125.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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
No PNG files were detected