84% cf7-robly

Code Review | Contact Form 7 to Robly

WordPress plugin Contact Form 7 to Robly scored84%from 54 tests.

About plugin

  • Plugin page: cf7-robly
  • Plugin version: 1.2.5
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.8.2
  • WordPress version: 6.3.1
  • First release: May 4, 2016
  • Latest release: Sep 27, 2017
  • Number of updates: 13
  • Update frequency: every 74.5 days
  • Top authors: macbookandrew (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /3,156 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼10.79ms] Passed 4 tests

Server-side resources used by Contact Form 7 to Robly
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0639.62 ▼4.82
Dashboard /wp-admin3.38 ▲0.0348.98 ▼15.29
Posts /wp-admin/edit.php3.43 ▲0.0747.45 ▼6.05
Add New Post /wp-admin/post-new.php5.98 ▲0.0989.58 ▼16.98
Media Library /wp-admin/upload.php3.30 ▲0.0741.02 ▲4.25
CF7 to Robly /wp-admin/options-general.php?page=contact-form-7-robly3.2432.21

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Contact Form 7 to Robly
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.16 ▼1.214.83 ▲3.0840.40 ▲0.89
Dashboard /wp-admin2,210 ▲194.85 ▼0.05106.56 ▲4.5039.28 ▼7.02
Posts /wp-admin/edit.php2,096 ▲72.02 ▼0.0233.93 ▼7.3331.93 ▼6.56
Add New Post /wp-admin/post-new.php1,536 ▲2323.26 ▲5.73680.62 ▲67.0751.95 ▲0.09
Media Library /wp-admin/upload.php1,392 ▲44.17 ▲0.0197.96 ▼3.7641.57 ▼5.88
CF7 to Robly /wp-admin/options-general.php?page=contact-form-7-robly8282.0526.5534.81

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=contact-form-7-robly
    • > Notice in wp-content/plugins/cf7-robly/cf7-robly.php+103
    Trying to access array offset on value of type bool

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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Tags: There are too many tags (12 tag instead of maximum 10)
The official readme.txt might help

cf7-robly/cf7-robly.php Passed 13 tests

The main file in "Contact Form 7 to Robly" v. 1.2.5 serves as a complement to information provided in readme.txt and as the entry point to the plugin
57 characters long description:
Adds Contact Form 7 submissions to Robly using their API.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected3,142 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript6114181,290
JSON1001,033
PHP17369413
CSS41226406

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions17
▷ Named functions17100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
css/chosen-sprite.png0.53KB0.88KB0.00%
css/chosen-sprite@2x.png0.72KB0.83KB0.00%