84% contact-form-7-response-colorbox-popup

Code Review | Contact Form 7 Response Colorbox Popup

WordPress plugin Contact Form 7 Response Colorbox Popup scored84%from 54 tests.

About plugin

  • Plugin page: contact-form-7-re...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.1
  • WordPress version: 6.3.1
  • First release: Feb 3, 2014
  • Latest release: Dec 19, 2014
  • Number of updates: 17
  • Update frequency: every 18.8 days
  • Top authors: dudaster (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

300+ active /20,176 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

An overview of server-side resources used by Contact Form 7 Response Colorbox Popup
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.07 ▼2.48
Dashboard /wp-admin3.31 ▲0.0046.55 ▼14.05
Posts /wp-admin/edit.php3.36 ▲0.0040.70 ▼14.97
Add New Post /wp-admin/post-new.php5.89 ▲0.0083.65 ▼28.72
Media Library /wp-admin/upload.php3.23 ▲0.0034.20 ▼0.53

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Contact Form 7 Response Colorbox Popup
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲5413.24 ▼1.191.77 ▼0.5647.90 ▼3.17
Dashboard /wp-admin2,209 ▲185.92 ▲1.02114.83 ▼15.1143.95 ▼9.33
Posts /wp-admin/edit.php2,089 ▼01.98 ▼0.0136.48 ▼0.1031.29 ▼2.70
Add New Post /wp-admin/post-new.php1,514 ▼1417.57 ▼0.58698.62 ▲45.9754.00 ▼0.02
Media Library /wp-admin/upload.php1,385 ▲34.20 ▼0.2296.63 ▼3.2242.45 ▼0.82

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/contact-form-7-response-colorbox-popup/colorboxcf7response.php:64

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: colorbox, contact form 7, response message, popup

contact-form-7-response-colorbox-popup/colorboxcf7response.php 85% from 13 tests

The main PHP file in "Contact Form 7 Response Colorbox Popup" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 199 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("contact-form-7-response-colorbox-popup.php" instead of "colorboxcf7response.php")

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 plugin51 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP141351

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.50
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.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 images were found in this plugin