10% wooref

Code Review | WooRef

WordPress plugin WooRef scored10%from 54 tests.

About plugin

  • Plugin page: wooref
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.4
  • WordPress version: 6.3.1
  • First release: Oct 10, 2017
  • Latest release: Oct 12, 2017
  • Number of updates: 5
  • Update frequency: every 0.8 days
  • Top authors: pizzolante (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /603 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
  • Install procedure had errors
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)

Server metrics [RAM: ▼1.90MB] [CPU: ▼61.87ms] Passed 4 tests

Analyzing server-side resources used by WooRef
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.09 ▼1.374.90 ▼39.07
Dashboard /wp-admin2.11 ▼1.235.48 ▼57.29
Posts /wp-admin/edit.php2.12 ▼1.245.75 ▼45.16
Add New Post /wp-admin/post-new.php2.12 ▼3.775.92 ▼105.95
Media Library /wp-admin/upload.php2.12 ▼1.115.08 ▼29.21

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

Filesystem and database footprint
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 10 new options
New WordPress options
widget_theysaidso_widget
wooref_track_user_email
wooref_track_admin_email
can_compress_scripts
wooref_trackme
wooref_cookie_expire
widget_recent-comments
widget_recent-posts
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

This is an overview of browser requirements for WooRef
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲4014.25 ▼0.101.59 ▼0.2040.27 ▼3.47
Dashboard /wp-admin2,207 ▲305.63 ▼0.0390.01 ▼0.3839.47 ▼5.34
Posts /wp-admin/edit.php2,112 ▲122.00 ▲0.0040.65 ▼0.2838.13 ▼2.23
Add New Post /wp-admin/post-new.php1,538 ▲1223.14 ▼0.30679.41 ▲19.9448.60 ▼5.38
Media Library /wp-admin/upload.php1,412 ▲124.22 ▲0.0794.66 ▼11.8045.15 ▲0.62

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function register_uninstall_hook was called incorrectly. Only a static class method or function can be used in an uninstall hook. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
  • The uninstall procedure has failed, leaving 10 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • wooref_cookie_expire
    • wooref_trackme
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • wooref_track_admin_email
    • wooref_track_user_email

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

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 take a closer look at the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/wooref/wooref.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues 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
4 plugin tags: track referral, referral, external referral, affiliate

wooref/wooref.php Passed 13 tests

"WooRef" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
110 characters long description:
WooRef is a Wordpress plugin that allows you to view and track WooCommerce sales comes from any referral site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin229 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23015171
PO File1172058

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity16.00
▷ Minimum class complexity16.00
▷ Maximum class complexity16.00
Average method complexity1.88
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes1100.00%
Methods17
▷ Static methods211.76%
▷ Public methods17100.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

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected