Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼1.68ms] Passed 4 tests
This is a short check of server-side resources used by Viral Signup - limited opt-in with viral refferal sharing
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 42.67 ▲0.93 |
Dashboard /wp-admin | 3.32 ▲0.02 | 44.64 ▼1.75 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 46.12 ▼0.16 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 83.01 ▼5.73 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 33.57 ▲2.12 |
Server storage [IO: ▲1.93MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 66 new files
Database: 1 new table, 6 new options
New tables |
---|
wp_wow_signup_free |
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Viral Signup - limited opt-in with viral refferal sharing
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲83 | 13.66 ▼0.64 | 1.64 ▼0.55 | 42.08 ▼8.01 |
Dashboard /wp-admin | 2,224 ▲36 | 5.86 ▲0.93 | 107.02 ▼8.85 | 37.36 ▼10.03 |
Posts /wp-admin/edit.php | 2,107 ▲18 | 2.05 ▲0.00 | 36.77 ▲0.73 | 32.26 ▼1.62 |
Add New Post /wp-admin/post-new.php | 1,529 ▲15 | 23.44 ▲5.75 | 670.14 ▼12.22 | 62.18 ▲8.44 |
Media Library /wp-admin/upload.php | 1,406 ▲15 | 4.20 ▼0.02 | 95.67 ▼0.37 | 42.91 ▼0.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- The plugin did not uninstall gracefully
- > Notice in wp-content/plugins/viral-signup/admin/admin.php+27
Undefined index: wow_nonce_field
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
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
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/viral-signup/admin/partials/signup/menu.php on line 3
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/viral-signup/admin/partials/signup/menu.php:16
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Add images for these screenshots: #1 (Example of a signup form with a limited amount of available spaces), #2 (Enable viral sharing and ask your visitors to bring referrals), #3 (Overview), #4 (Features), #5 (Simple signup mode), #6 (Simple signup + Viral sharing mode), #7 (Limited signup mode), #8 (Limited signup + Viral sharing mode), #9 (Wow Viral Signups setup example), #10 (Pro version features)
- Tags: Please delete some tags, you are using 25 tag instead of maximum 10
viral-signup/viral-signup.php 92% from 13 tests
The main PHP script in "Viral Signup - limited opt-in with viral refferal sharing" version 2.1 is automatically included on every request by WordPress
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected3,420 lines of code in 29 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 2 | 341 | 674 | 1,385 |
PHP | 20 | 122 | 230 | 1,363 |
JavaScript | 4 | 33 | 26 | 476 |
CSS | 3 | 28 | 0 | 196 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 27.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 37.00 |
Average method complexity | 3.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 18.42% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 31 | 81.58% |
Functions | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 11 | |
▷ Global constants | 1 | 9.09% |
▷ Class constants | 10 | 90.91% |
▷ Public constants | 10 | 100.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
12 compressed PNG files occupy 0.22MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/partials/signup/items/countdowns.png | 20.92KB | 21.96KB | 0.00% |
admin/partials/signup/items/forms.png | 16.85KB | 18.15KB | 0.00% |
admin/partials/signup/items/skype.png | 16.44KB | 17.14KB | 0.00% |
admin/partials/signup/items/modal-windows.png | 24.38KB | 25.78KB | 0.00% |
public/signup/css/tw.png | 1.28KB | 0.65KB | ▼ 49.70% |