83% cohesionet-buddy-shopping-online

Code Review | Cohesionet Buddy Shopping Online

WordPress plugin Cohesionet Buddy Shopping Online scored 83% from 54 tests.

About plugin

  • Plugin page: cohesionet-buddy-...
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5.1-4.1
  • WordPress version: 6.3.1
  • First release: Jul 10, 2015
  • Latest release: Oct 25, 2015
  • Number of updates: 4
  • Update frequency: every 26.8 days
  • Top authors: cohesionet (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 809 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

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

Analyzing server-side resources used by Cohesionet Buddy Shopping Online
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.20 ▼2.34
Dashboard /wp-admin3.31 ▲0.0144.88 ▼3.16
Posts /wp-admin/edit.php3.36 ▲0.0148.20 ▲2.28
Add New Post /wp-admin/post-new.php5.89 ▲0.0192.38 ▼11.89
Media Library /wp-admin/upload.php3.23 ▲0.0134.88 ▼0.29

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

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Cohesionet Buddy Shopping Online
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.34 ▼1.041.57 ▼0.1739.30 ▼4.72
Dashboard /wp-admin2,197 ▲65.83 ▲0.9398.57 ▼16.3740.50 ▼9.05
Posts /wp-admin/edit.php2,089 ▼32.02 ▼0.0041.17 ▼1.3635.27 ▼0.86
Add New Post /wp-admin/post-new.php1,533 ▼223.54 ▲0.61615.52 ▼67.1168.74 ▲7.26
Media Library /wp-admin/upload.php1,388 ▼04.16 ▼0.0295.97 ▼8.5145.75 ▲1.83

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • 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 | 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
The following issues need your attention
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function apply_filters() in wp-content/plugins/cohesionet-buddy-shopping-online/cohesionet_buddyShopping.php:62
    • > PHP Fatal error
      Uncaught Error: Class 'Cohesionet_BuddyShopping_Product' not found in wp-content/plugins/cohesionet-buddy-shopping-online/ui/product.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Cohesionet_BuddyShopping' not found in wp-content/plugins/cohesionet-buddy-shopping-online/ui/embed.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Cohesionet_BuddyShopping' not found in wp-content/plugins/cohesionet-buddy-shopping-online/ui/admin_ui.php:5

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 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
  • Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
Please take inspiration from this readme.txt

cohesionet-buddy-shopping-online/cohesionet_buddyShopping.php 85% from 13 tests

Analyzing the main PHP file in "Cohesionet Buddy Shopping Online" version 2.0.0
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("cohesionet-buddy-shopping-online.php" instead of "cohesionet_buddyShopping.php")
  • Description: Please keep the plugin description shorter than 140 characters (currently 398 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected200 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP64845200

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity2.00
▷ Minimum class complexity1.00
▷ Maximum class complexity3.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods16
▷ Static methods212.50%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin