Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▼1.21MB] [CPU: ▼43.44ms] Passed 4 tests
A check of server-side resources used by Viral Sign Ups
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.75 ▼0.71 | 13.03 ▼28.70 |
Dashboard /wp-admin | 2.80 ▼0.50 | 15.30 ▼36.52 |
Posts /wp-admin/edit.php | 2.80 ▼0.56 | 15.00 ▼33.44 |
Add New Post /wp-admin/post-new.php | 2.80 ▼3.09 | 15.95 ▼73.79 |
Media Library /wp-admin/upload.php | 2.80 ▼0.43 | 15.49 ▼29.99 |
Server storage [IO: ▲0.33MB] [DB: ▲0.07MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 35 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Viral Sign Ups: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,919 ▲158 | 13.64 ▼0.90 | 6.85 ▲5.21 | 40.74 ▼2.64 |
Dashboard /wp-admin | 2,210 ▲39 | 5.59 ▼0.04 | 87.65 ▼13.52 | 53.87 ▲10.11 |
Posts /wp-admin/edit.php | 2,118 ▲18 | 1.95 ▼0.04 | 38.58 ▲1.01 | 32.90 ▼1.83 |
Add New Post /wp-admin/post-new.php | 1,556 ▲30 | 23.15 ▼0.54 | 651.46 ▼33.69 | 165.66 ▲114.05 |
Media Library /wp-admin/upload.php | 1,415 ▲15 | 4.11 ▼0.02 | 102.88 ▼7.11 | 44.52 ▼2.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- The plugin did not uninstall gracefully
- > User deprecated in wp-includes/functions.php+5453
Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 4× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/viral-sign-ups/inc/shortcodes.php:51
- > PHP Fatal error
Uncaught Error: Call to undefined function get_currentuserinfo() in wp-content/plugins/viral-sign-ups/inc/default_settings.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/viral-sign-ups/config.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/viral-sign-ups/config.php:11
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Please add an image for screenshot #7 (Powerful reports)
- Donate link: Invalid url: ""
viral-sign-ups/viralsignups.php 77% from 13 tests
The entry point to "Viral Sign Ups" version 1.0.11 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("viral-sign-ups.php" instead of "viralsignups.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Description: The description should be shorter than 140 characters (currently 182 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin3,002 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 290 | 755 | 1,400 |
CSS | 4 | 49 | 71 | 971 |
JavaScript | 4 | 84 | 48 | 631 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 20.20 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 31.00 |
Average method complexity | 2.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 81 | |
▷ Static methods | 26 | 32.10% |
▷ Public methods | 81 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 11 | |
▷ Named functions | 11 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 12 | 92.31% |
▷ Class constants | 1 | 7.69% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
12 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/admin/img/stripe/1.png | 2.63KB | 1.86KB | ▼ 29.39% |
assets/img/social_sprite.png | 1.70KB | 0.65KB | ▼ 61.98% |
assets/admin/img/Pro-VSU.png | 4.40KB | 2.48KB | ▼ 43.58% |
assets/admin/img/stripe/3.png | 1.07KB | 0.24KB | ▼ 77.84% |
assets/admin/img/stripe.png | 9.24KB | 4.46KB | ▼ 51.76% |