83% free-forms-and-college-search-widget

Code Review | Free Forms and College Search Widget

WordPress plugin Free Forms and College Search Widget scored83%from 54 tests.

About plugin

  • Plugin page: free-forms-and-co...
  • Plugin version: 1.0
  • PHP compatiblity: 5.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.3
  • WordPress version: 6.3.1
  • First release: Jul 29, 2022
  • Latest release: Aug 16, 2023
  • Number of updates: 21
  • Update frequency: every 18.2 days
  • Top authors: ultimatecollegelist (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /805 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
Installer ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.48ms] Passed 4 tests

This is a short check of server-side resources used by Free Forms and College Search Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0044.66 ▲1.05
Dashboard /wp-admin3.31 ▲0.0150.26 ▼3.14
Posts /wp-admin/edit.php3.36 ▲0.0050.07 ▼5.47
Add New Post /wp-admin/post-new.php5.89 ▲0.0090.45 ▼18.34
Media Library /wp-admin/upload.php3.23 ▲0.0042.53 ▲4.31

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 18 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Free Forms and College Search Widget
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.29 ▼0.121.61 ▼0.1838.89 ▼2.83
Dashboard /wp-admin2,210 ▲305.64 ▼0.0983.49 ▼5.7442.71 ▼1.90
Posts /wp-admin/edit.php2,109 ▲92.04 ▲0.0336.85 ▼4.9532.90 ▼4.37
Add New Post /wp-admin/post-new.php1,560 ▲2923.05 ▼0.22667.43 ▼12.3653.67 ▼3.92
Media Library /wp-admin/upload.php1,409 ▲94.24 ▼0.0494.89 ▼12.7945.78 ▲1.25

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • 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 everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/free-forms-and-college-search-widget/ucl-widget.php:50

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
9 plugin tags: form, college, quiz maker, course, ultimatewidgets...

free-forms-and-college-search-widget/ucl-widget.php 77% from 13 tests

This is the main PHP file of "Free Forms and College Search Widget" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 150 characters long)
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("free-forms-and-college-search-widget.php" instead of "ucl-widget.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected87 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1111587

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity1.00
▷ Minimum class complexity1.00
▷ Maximum class complexity1.00
Average method complexity1.00
▷ Minimum method complexity1.00
▷ Maximum method complexity1.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ 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
2 compressed PNG files occupy 0.65MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-772x250.png137.70KB148.38KB0.00%
assets/banner-1544x500.png525.63KB574.03KB0.00%