83% wooub

Code Review | Woo-UberRush by Phanes

WordPress plugin Woo-UberRush by Phanes scored 83% from 54 tests.

About plugin

  • Plugin page: wooub
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.8
  • WordPress version: 6.3.1
  • First release: Jul 19, 2017
  • Latest release: Jul 19, 2017
  • Number of updates: 10
  • Update frequency: every 4.4 days
  • Top authors: phanesco (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 792 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.21MB] [CPU: ▼1.28ms] Passed 4 tests

Server-side resources used by Woo-UberRush by Phanes
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1838.21 ▼7.04
Dashboard /wp-admin3.52 ▲0.2147.16 ▲4.65
Posts /wp-admin/edit.php3.63 ▲0.2751.14 ▲3.54
Add New Post /wp-admin/post-new.php6.12 ▲0.2395.47 ▼5.06
Media Library /wp-admin/upload.php3.44 ▲0.2137.23 ▲3.45
Phanes UberRush /wp-admin/options-general.php?page=phanes-uber3.4134.45

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by Woo-UberRush by Phanes
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,822 ▲7613.31 ▼1.061.62 ▼0.4637.30 ▼6.21
Dashboard /wp-admin2,228 ▲374.85 ▼0.04108.53 ▲4.6141.89 ▼1.73
Posts /wp-admin/edit.php2,110 ▲182.06 ▲0.0242.92 ▲2.1036.38 ▼0.75
Add New Post /wp-admin/post-new.php1,553 ▲1118.10 ▼0.30603.85 ▼20.2053.53 ▼17.79
Media Library /wp-admin/upload.php1,410 ▲194.28 ▼0.03103.12 ▲7.7646.31 ▲2.52
Phanes UberRush /wp-admin/options-general.php?page=phanes-uber8322.0624.2235.98

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means 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
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'UBER\\Classes\\Plugin' not found in wp-content/plugins/wooub/classes/UberRush.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Shipping_Method' not found in wp-content/plugins/wooub/classes/WC_UberShippingMethod.php:4

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

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Attributes that need to be fixed:
  • Screenshots: A description for screenshot #1 is required in wooub/assets to your readme.txt
Please take inspiration from this readme.txt

wooub/main.php 77% from 13 tests

"Woo-UberRush by Phanes" version 0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("wooub.php" instead of "main.php")
  • Text Domain: Please use dashes and lowercase characters for text domains
  • Description: The description should be shorter than 140 characters (currently 165 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin1,223 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP73302191,214
JavaScript1209

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity38.20
▷ Minimum class complexity9.00
▷ Maximum class complexity109.00
Average method complexity4.10
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes120.00%
Methods61
▷ Static methods3862.30%
▷ Public methods5691.80%
▷ Protected methods11.64%
▷ Private methods46.56%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants3
▷ Global constants133.33%
▷ Class constants266.67%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin