84% woosite

Code Review | WooSite

WordPress plugin WooSite scored 84% from 54 tests.

About plugin

  • Plugin page: woosite
  • Plugin version: 1.7
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.0.2
  • WordPress version: 6.3.1
  • First release: Dec 27, 2018
  • Latest release: Jan 23, 2019
  • Number of updates: 3
  • Update frequency: every 9.0 days
  • Top authors: buznetwork (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 640 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
This plugin's installer ran successfully

Server metrics [RAM: ▼0.65MB] [CPU: ▼18.64ms] Passed 4 tests

An overview of server-side resources used by WooSite
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0332.74 ▼7.97
Dashboard /wp-admin3.33 ▲0.0344.46 ▼4.81
Posts /wp-admin/edit.php3.38 ▲0.0349.70 ▲10.60
Add New Post /wp-admin/post-new.php3.21 ▼2.6836.86 ▼63.82
Media Library /wp-admin/upload.php3.26 ▲0.0333.79 ▲2.03

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

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

Browser metrics Passed 4 tests

WooSite: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.30 ▼1.051.63 ▼0.3141.27 ▼7.66
Dashboard /wp-admin2,200 ▲124.87 ▼1.07108.85 ▼23.0138.02 ▼7.87
Posts /wp-admin/edit.php2,089 ▼32.03 ▲0.0239.82 ▲0.2535.67 ▼0.52
Add New Post /wp-admin/post-new.php1,533 ▼923.44 ▲5.49647.17 ▼23.4354.49 ▲0.35
Media Library /wp-admin/upload.php1,388 ▼34.41 ▲0.21100.48 ▲0.9940.92 ▼1.59

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

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
Good news, no errors were detected

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 have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/woosite/genbuz-woosite.php:28

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: multi site order managment, order managment, woomulti, orders, multi store...

woosite/genbuz-woosite.php 92% from 13 tests

The primary PHP file in "WooSite" version 1.7 is used by WordPress to initiate all plugin functionality
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 ("woosite.php" instead of "genbuz-woosite.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected115 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP26741115

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.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
There are no PNG files in this plugin