89% ctc-flatbuttons

Code Review | Click to Contact - Float Buttons

WordPress plugin Click to Contact - Float Buttons scored89%from 54 tests.

About plugin

  • Plugin page: ctc-flatbuttons
  • Plugin version: 1.0.3
  • PHP compatiblity: 7.1+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.2
  • WordPress version: 6.3.1
  • First release: Apr 12, 2022
  • Latest release: Apr 3, 2023
  • Number of updates: 11
  • Update frequency: every 32.4 days
  • Top authors: dmitrylitvinov (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /1,523 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.07MB] [CPU: ▼0.80ms] Passed 4 tests

Analyzing server-side resources used by Click to Contact - Float Buttons
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0239.00 ▲0.81
Dashboard /wp-admin3.39 ▲0.0948.90 ▲2.02
Posts /wp-admin/edit.php3.51 ▲0.1545.49 ▼0.90
Add New Post /wp-admin/post-new.php5.97 ▲0.0889.77 ▼5.13
Media Library /wp-admin/upload.php3.32 ▲0.0837.57 ▲4.64
Click to Contact settings /wp-admin/options-general.php?page=ctcflatbuttons-plugin-options3.2831.45

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Click to Contact - Float Buttons
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,911 ▲16513.56 ▼0.756.59 ▲4.8243.77 ▲1.65
Dashboard /wp-admin2,210 ▲224.86 ▼0.04105.58 ▲5.6543.03 ▼2.69
Posts /wp-admin/edit.php2,093 ▲11.98 ▼0.0633.95 ▼8.3133.90 ▼3.65
Add New Post /wp-admin/post-new.php1,551 ▲3718.15 ▲0.63620.82 ▲10.6968.90 ▲14.96
Media Library /wp-admin/upload.php1,389 ▲14.21 ▲0.06100.39 ▲0.1540.44 ▼3.59
Click to Contact settings /wp-admin/options-general.php?page=ctcflatbuttons-plugin-options9972.0322.5328.65

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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


Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: contacts

ctc-flatbuttons/ctc-flatbuttons.php 85% from 13 tests

The main file in "Click to Contact - Float Buttons" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 227 characters long)
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin499 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity20.00
▷ Minimum class complexity20.00
▷ Maximum class complexity20.00
Average method complexity1.79
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
▷ Static methods24100.00%
▷ Public methods24100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions2100.00%
▷ Anonymous functions00.00%
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin