84% referboard-woocommerce

Code Review | referboard-woocommerce

WordPress plugin referboard-woocommerce scored84%from 54 tests.

About plugin

  • Plugin page: referboard-woocom...
  • Plugin version: 1.14
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9.01-4.5.3
  • WordPress version: 6.3.1
  • First release: Aug 21, 2016
  • Latest release: Aug 29, 2016
  • Number of updates: 13
  • Update frequency: every 0.7 days
  • Top authors: referboard (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /542 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼8.40ms] Passed 4 tests

A check of server-side resources used by referboard-woocommerce
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0937.17 ▼4.07
Dashboard /wp-admin3.39 ▲0.0545.89 ▼20.36
Posts /wp-admin/edit.php3.44 ▲0.0949.12 ▲0.32
Add New Post /wp-admin/post-new.php5.97 ▲0.0982.10 ▼7.14
Media Library /wp-admin/upload.php3.31 ▲0.0935.77 ▼2.01

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for referboard-woocommerce
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7914.43 ▲0.061.77 ▲0.0238.75 ▼3.97
Dashboard /wp-admin2,203 ▲154.83 ▼1.03116.18 ▼5.7042.78 ▼0.83
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0540.32 ▼4.4636.29 ▲4.30
Add New Post /wp-admin/post-new.php1,520 ▲123.01 ▼0.38659.24 ▼52.5356.71 ▼0.48
Media Library /wp-admin/upload.php1,385 ▼64.22 ▲0.0597.99 ▼6.5442.44 ▼7.68

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/referboard-woocommerce/referboard-woocommerce.php:21

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === referboard-woocommerce === )
You can look at the official readme.txt

referboard-woocommerce/referboard-woocommerce.php Passed 13 tests

The main file in "referboard-woocommerce" v. 1.14 serves as a complement to information provided in readme.txt and as the entry point to the plugin
120 characters long description:
This Plug-in enables your website to easily integrate with the Referboard platform and get your products online quicker.

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
Success! There were no dangerous files found in this plugin460 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP2145211460

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity84.00
▷ Minimum class complexity84.00
▷ Maximum class complexity84.00
Average method complexity8.55
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods872.73%
▷ Protected methods327.27%
▷ Private methods00.00%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin