Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼8.06ms] Passed 4 tests
A check of server-side resources used by Social Referrals
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 38.93 ▼5.38 |
Dashboard /wp-admin | 3.33 ▼0.01 | 56.23 ▼7.03 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 49.28 ▼2.11 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 88.92 ▼17.72 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 39.28 ▲3.55 |
Social Referrals /wp-admin/options-general.php?page=social_referrals | 3.22 | 34.79 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: 1 new table, 7 new options
New tables |
---|
wp_social_referrals |
New WordPress options |
---|
widget_recent-comments |
social_referrals_db_ver |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by Social Referrals
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,818 ▲57 | 14.20 ▼0.35 | 2.00 ▲0.02 | 38.31 ▼6.90 |
Dashboard /wp-admin | 2,196 ▲19 | 5.56 ▼0.14 | 86.91 ▼5.06 | 38.54 ▼2.85 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.99 ▲0.03 | 35.08 ▼1.39 | 33.19 ▼2.10 |
Add New Post /wp-admin/post-new.php | 1,529 ▼6 | 23.41 ▲5.02 | 678.50 ▲22.75 | 61.43 ▼5.99 |
Media Library /wp-admin/upload.php | 1,404 ▲10 | 4.22 ▼0.00 | 99.49 ▼3.50 | 42.64 ▼1.70 |
Social Referrals /wp-admin/options-general.php?page=social_referrals | 821 | 2.00 | 25.63 | 26.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The plugin did not uninstall successfully, leaving 1 table in the database
- wp_social_referrals
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_recent-posts
- social_referrals_db_ver
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-referrals/social-referrals.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that need to be fixed:
- Screenshots: A description for screenshot #1 is missing in social-referrals/assets to your readme.txt
social-referrals/social-referrals.php Passed 13 tests
This is the main PHP file of "Social Referrals" version 1.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
39 characters long description:
Logs and displays social site referrals
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
No dangerous file extensions were detected144 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 27 | 10 | 144 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.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
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin