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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.37 | 4.90 ▼39.07 |
Dashboard /wp-admin | 2.11 ▼1.23 | 5.48 ▼57.29 |
Posts /wp-admin/edit.php | 2.12 ▼1.24 | 5.75 ▼45.16 |
Add New Post /wp-admin/post-new.php | 2.12 ▼3.77 | 5.92 ▼105.95 |
Media Library /wp-admin/upload.php | 2.12 ▼1.11 | 5.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,801 ▲40 | 14.25 ▼0.10 | 1.59 ▼0.20 | 40.27 ▼3.47 |
Dashboard /wp-admin | 2,207 ▲30 | 5.63 ▼0.03 | 90.01 ▼0.38 | 39.47 ▼5.34 |
Posts /wp-admin/edit.php | 2,112 ▲12 | 2.00 ▲0.00 | 40.65 ▼0.28 | 38.13 ▼2.23 |
Add New Post /wp-admin/post-new.php | 1,538 ▲12 | 23.14 ▼0.30 | 679.41 ▲19.94 | 48.60 ▼5.38 |
Media Library /wp-admin/upload.php | 1,412 ▲12 | 4.22 ▲0.07 | 94.66 ▼11.80 | 45.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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 30 | 15 | 171 |
PO File | 1 | 17 | 20 | 58 |
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 code | 0.22 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 1 | 100.00% |
Methods | 17 | |
▷ Static methods | 2 | 11.76% |
▷ Public methods | 17 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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