89% cf7-sweet-alert-popup

Code Review | Popup for CF7 with Sweet Alert

WordPress plugin Popup for CF7 with Sweet Alert scored89%from 54 tests.

About plugin

  • Plugin page: cf7-sweet-alert-p...
  • Plugin version: 1.6.5
  • PHP compatiblity: 5.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-6.3.1
  • WordPress version: 6.3.1
  • First release: Mar 1, 2021
  • Latest release: Sep 13, 2023
  • Number of updates: 18
  • Update frequency: every 51.6 days
  • Top authors: metin_Nn (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

2,000+ active /7,416 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.04MB] [CPU: ▼3.58ms] Passed 4 tests

An overview of server-side resources used by Popup for CF7 with Sweet Alert
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0540.04 ▼0.57
Dashboard /wp-admin3.34 ▲0.0448.35 ▼6.20
Posts /wp-admin/edit.php3.39 ▲0.0447.90 ▲0.85
Add New Post /wp-admin/post-new.php5.92 ▲0.0484.87 ▼8.41
Media Library /wp-admin/upload.php3.27 ▲0.0440.53 ▲4.20
CF7 Swal Settings /wp-admin/admin.php?page=cf7-simplepopup3.2333.84

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Popup for CF7 with Sweet Alert
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲6814.58 ▲0.054.18 ▲2.2439.85 ▼1.45
Dashboard /wp-admin2,194 ▲175.57 ▼0.1087.54 ▼3.4942.44 ▼2.67
Posts /wp-admin/edit.php2,102 ▲22.01 ▼0.0336.19 ▼1.9836.37 ▲0.21
Add New Post /wp-admin/post-new.php1,528 ▼923.90 ▲0.83696.93 ▲15.2559.41 ▲3.39
Media Library /wp-admin/upload.php1,405 ▲84.19 ▲0.08105.89 ▼10.4446.28 ▼1.38
CF7 Swal Settings /wp-admin/admin.php?page=cf7-simplepopup8352.1524.0329.37

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention: The official readme.txt might help

cf7-sweet-alert-popup/cf7simplepopup.php 85% from 13 tests

"Popup for CF7 with Sweet Alert" version 1.6.5's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("cf7-sweet-alert-popup.php" instead of "cf7simplepopup.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin264 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP15724106
PO File2242680
JavaScript20049
CSS24025
Markdown1104

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.18
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
PNG images were not found in this plugin