10% ct-contact

Code Review | CT Contact

WordPress plugin CT Contact scored10%from 54 tests.

About plugin

  • Plugin page: ct-contact
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.6
  • WordPress version: 6.3.1
  • First release: Oct 15, 2012
  • Latest release: Jul 28, 2016
  • Number of updates: 11
  • Update frequency: every 125.7 days
  • Top authors: contempoinc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /3,224 total downloads


Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Please fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/ct-contact/ct-contact.php+25
    Methods with the same name as their class will not be constructors in a future version of PHP; ct_Contact has a deprecated constructor

Server metrics [RAM: ▼1.89MB] [CPU: ▼53.21ms] Passed 4 tests

This is a short check of server-side resources used by CT Contact
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.10 ▼1.364.88 ▼34.91
Dashboard /wp-admin2.12 ▼1.186.78 ▼43.53
Posts /wp-admin/edit.php2.12 ▼1.237.13 ▼36.34
Add New Post /wp-admin/post-new.php2.12 ▼3.766.69 ▼98.07
Media Library /wp-admin/upload.php2.12 ▼1.116.10 ▼26.19

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 7 new options
New WordPress options

Browser metrics Passed 4 tests

This is an overview of browser requirements for CT Contact
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲8113.22 ▼1.161.82 ▲0.0745.56 ▲1.41
Dashboard /wp-admin2,206 ▲145.86 ▲0.91111.33 ▼11.3343.42 ▼3.63
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0133.87 ▼0.5536.75 ▲2.29
Add New Post /wp-admin/post-new.php1,535 ▲2123.21 ▲5.66672.98 ▲19.1757.15 ▲1.59
Media Library /wp-admin/upload.php1,391 ▲34.24 ▲0.0395.21 ▲0.5541.99 ▼1.12

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • Uninstall procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/ct-contact/ct-contact.php+25
    Methods with the same name as their class will not be constructors in a future version of PHP; ct_Contact has a deprecated constructor
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • theysaidso_admin_options
    • widget_ct_contact
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% 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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ct-contact/ct-contact.php:19

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side


Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Donate link: Please fix this invalid url: ""
You can look at the official readme.txt

ct-contact/ct-contact.php Passed 13 tests

The main PHP file in "CT Contact" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
35 characters long description:
A simple contact information widget

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin154 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PO File1131240

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity21.00
▷ Minimum class complexity21.00
▷ Maximum class complexity21.00
Average method complexity6.00
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions1100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
6 compressed PNG files occupy 0.00MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/google-plus.png0.53KB0.49KB▼ 8.97%
assets/images/twitter.png0.58KB0.52KB▼ 9.97%
assets/images/email.png0.61KB0.49KB▼ 20.99%
assets/images/flickr.png0.59KB0.50KB▼ 14.00%
assets/images/facebook.png0.54KB0.43KB▼ 20.76%