83% cometleads-contact

Code Review | CometLeads Contact

WordPress plugin CometLeads Contact scored83%from 54 tests.

About plugin

  • Plugin page: cometleads-contact
  • Plugin version: 1.0.0
  • PHP compatiblity: 5.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.8-4.9
  • WordPress version: 6.3.1
  • First release: Aug 1, 2018
  • Latest release: Aug 16, 2018
  • Number of updates: 11
  • Update frequency: every 2.6 days
  • Top authors: jasonleakey (63.64%)cometleads (45.45%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /659 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼4.06ms] Passed 4 tests

Server-side resources used by CometLeads Contact
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.62 ▲0.94
Dashboard /wp-admin3.36 ▲0.0245.07 ▼13.05
Posts /wp-admin/edit.php3.48 ▲0.1245.71 ▼4.42
Add New Post /wp-admin/post-new.php5.94 ▲0.0691.97 ▲0.28
Media Library /wp-admin/upload.php3.29 ▲0.0635.27 ▲1.49
CometLeads Contact /wp-admin/options-general.php?page=cmtlc-gull-wordpress-plugin3.2532.25

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for CometLeads Contact
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.20 ▼1.171.84 ▲0.0438.54 ▼2.16
Dashboard /wp-admin2,207 ▲245.83 ▲0.9398.49 ▼9.0039.42 ▼3.49
Posts /wp-admin/edit.php2,090 ▲12.02 ▼0.0333.58 ▼3.6931.34 ▼0.41
Add New Post /wp-admin/post-new.php1,536 ▼022.73 ▼0.39595.47 ▼61.8253.71 ▼4.19
Media Library /wp-admin/upload.php1,392 ▲44.22 ▼0.0092.39 ▼9.2044.21 ▲2.09
CometLeads Contact /wp-admin/options-general.php?page=cmtlc-gull-wordpress-plugin9582.4043.6028.25

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please fix the following
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cometleads-contact/admin/options.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (This screen shot description corresponds to screenshot-1.(png|jpg|jpeg|gif). Note that the screenshot is taken from), #2 (This is the second screen shot.)
You can take inspiration from this readme.txt

cometleads-contact/cmtlc-gull-for-wordpress.php 85% from 13 tests

The entry point to "CometLeads Contact" version 1.0.0 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("cometleads-contact.php" instead of "cmtlc-gull-for-wordpress.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected459 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP1197387309
CSS12913145
JavaScript1135

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity3.50
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity1.58
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods26
▷ Static methods27.69%
▷ Public methods2284.62%
▷ Protected methods00.00%
▷ Private methods415.38%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.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