84% woorise

Code Review | Woorise - Forms, Giveaways, Surveys & Quizzes

WordPress plugin Woorise - Forms, Giveaways, Surveys & Quizzes scored84%from 54 tests.

About plugin

  • Plugin page: woorise
  • Plugin version: 1.3.6
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.6-6.2.0
  • WordPress version: 6.3.1
  • First release: Nov 14, 2017
  • Latest release: Mar 16, 2023
  • Number of updates: 79
  • Update frequency: every 24.7 days
  • Top authors: woorise (100%)

Code review

54 tests

User reviews

31 reviews

Install metrics

1,000+ active /21,004 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
Install script ran successfully

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

A check of server-side resources used by Woorise - Forms, Giveaways, Surveys & Quizzes
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0139.54 ▲1.93
Dashboard /wp-admin3.31 ▼0.0345.66 ▼11.17
Posts /wp-admin/edit.php3.36 ▲0.0141.53 ▼6.25
Add New Post /wp-admin/post-new.php5.90 ▲0.0178.18 ▼14.05
Media Library /wp-admin/upload.php3.24 ▲0.0138.76 ▲3.46

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

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

Browser metrics Passed 4 tests

Woorise - Forms, Giveaways, Surveys & Quizzes: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.17 ▼0.181.80 ▲0.2743.35 ▲4.28
Dashboard /wp-admin2,198 ▲185.64 ▲0.0586.63 ▲0.2042.79 ▲4.99
Posts /wp-admin/edit.php2,100 ▼01.95 ▼0.0336.41 ▲2.2336.37 ▼2.93
Add New Post /wp-admin/post-new.php6,362 ▲4,82527.62 ▲9.39921.41 ▲273.4861.68 ▲3.95
Media Library /wp-admin/upload.php1,400 ▼04.28 ▲0.0494.14 ▼18.4245.96 ▼4.18

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget

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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/woorise/woorise.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: surveys, giveaways, contests, quizzes, forms

woorise/woorise.php Passed 13 tests

This is the main PHP file of "Woorise - Forms, Giveaways, Surveys & Quizzes" version 1.3.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
110 characters long description:
Create viral giveaways & contests, engaging forms, landing pages, surveys, quizzes, collect payments and more.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected1,503 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript11235581,403
PHP3316573
JSON10027

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.06
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods787.50%
▷ Protected methods00.00%
▷ Private methods112.50%
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

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