84% coworks-membership-request

Code Review | Coworks Public Form

WordPress plugin Coworks Public Form scored84%from 54 tests.

About plugin

  • Plugin page: coworks-membershi...
  • Plugin version: 2.2.3
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Dec 11, 2018
  • Latest release: Mar 4, 2019
  • Number of updates: 12
  • Update frequency: every 7.5 days
  • Top authors: coworks (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /557 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼1.81ms] Passed 4 tests

Analyzing server-side resources used by Coworks Public Form
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.78 ▼4.02
Dashboard /wp-admin3.32 ▲0.0244.70 ▼4.92
Posts /wp-admin/edit.php3.37 ▲0.0148.06 ▲1.27
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.71 ▲0.42
Media Library /wp-admin/upload.php3.24 ▲0.0133.53 ▲1.81

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Coworks Public Form
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,805 ▲4813.21 ▼1.381.69 ▼0.3442.39 ▼5.66
Dashboard /wp-admin2,211 ▲205.87 ▼0.03103.30 ▼10.2838.65 ▼8.90
Posts /wp-admin/edit.php2,094 ▲52.04 ▲0.0440.13 ▲5.4334.51 ▼3.27
Add New Post /wp-admin/post-new.php1,533 ▼923.31 ▲5.06682.48 ▲27.6147.56 ▼15.02
Media Library /wp-admin/upload.php1,387 ▲24.23 ▲0.0394.14 ▼7.4540.99 ▼2.88

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded

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
Even though no errors were found, 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× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/coworks-membership-request/Coworks-Membership-Request.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
No plugin tags provided

coworks-membership-request/Coworks-Membership-Request.php 92% from 13 tests

Analyzing the main PHP file in "Coworks Public Form" version 2.2.3
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("coworks-membership-request.php" instead of "Coworks-Membership-Request.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin95 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP1243354
JavaScript20241

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/coworks-icon.png1.01KB0.98KB▼ 3.19%