Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲1.04MB] [CPU: ▼0.56ms] Passed 4 tests
This is a short check of server-side resources used by Social Influencer Links
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.47 ▲1.01 | 43.04 ▲1.94 |
Dashboard /wp-admin | 4.33 ▲0.98 | 53.01 ▼3.89 |
Posts /wp-admin/edit.php | 4.44 ▲1.09 | 46.24 ▼2.75 |
Add New Post /wp-admin/post-new.php | 7.01 ▲1.13 | 93.50 ▲2.45 |
Media Library /wp-admin/upload.php | 4.33 ▲1.10 | 40.70 ▲10.60 |
Add New Link /wp-admin/post-new.php?post_type=wpm-landing-link | 4.52 | 55.07 |
Influencer Links /wp-admin/edit.php?post_type=wpm-landing-link | 4.29 | 36.64 |
Server storage [IO: ▲7.84MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 245 new files
Database: no new tables, 7 new options
New WordPress options |
---|
acf_version |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Social Influencer Links
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲60 | 14.35 ▼0.02 | 1.82 ▲0.14 | 43.82 ▲2.29 |
Dashboard /wp-admin | 2,218 ▲41 | 5.60 ▼0.08 | 98.19 ▲6.38 | 44.41 ▲7.81 |
Posts /wp-admin/edit.php | 2,129 ▲26 | 2.02 ▲0.01 | 36.98 ▼2.90 | 33.91 ▼2.41 |
Add New Post /wp-admin/post-new.php | 6,689 ▲5,151 | 24.47 ▲1.23 | 1,034.30 ▲443.14 | 47.62 ▼6.45 |
Media Library /wp-admin/upload.php | 1,967 ▲567 | 8.30 ▲4.11 | 211.36 ▲113.03 | 51.25 ▲6.55 |
Add New Link /wp-admin/post-new.php?post_type=wpm-landing-link | 2,453 | 8.20 | 183.93 | 45.93 |
Influencer Links /wp-admin/edit.php?post_type=wpm-landing-link | 1,098 | 1.98 | 33.41 | 31.02 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- acf_version
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
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 take a closer look at the following
- 76× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/social-influencer-links/lib/acf/includes/admin/views/html-admin-page-upgrade.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function acf_render_field_wrap() in wp-content/plugins/social-influencer-links/lib/acf/includes/admin/views/field-group-options.php:8
- > PHP Fatal error
Uncaught Error: Class 'acf_field' not found in wp-content/plugins/social-influencer-links/lib/acf/includes/fields/class-acf-field-group.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/social-influencer-links/lib/acf/includes/admin/views/html-location-group.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function acf_register_store() in wp-content/plugins/social-influencer-links/lib/acf/includes/acf-field-functions.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/social-influencer-links/lib/acf/includes/l10n.php:153
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-influencer-links/lib/acf/includes/forms/form-widget.php:40
- > PHP Fatal error
Uncaught Error: Class 'ACF_Field' not found in wp-content/plugins/social-influencer-links/lib/acf/includes/fields/class-acf-field-user.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function acf_register_store() in wp-content/plugins/social-influencer-links/lib/acf/includes/acf-value-functions.php:4
- > PHP Notice
Undefined variable: rule in wp-content/plugins/social-influencer-links/lib/acf/includes/admin/views/html-location-rule.php on line 4
- > 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, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (Creating your page with Gutenberg.), #2 (Creating your page with the Classic Editor.), #3 (Example page with a light theme.), #4 (Example page with a dark theme.)
social-influencer-links/index.php 92% from 13 tests
The main PHP file in "Social Influencer Links" ver. 0.2.6 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("social-influencer-links.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
There were no executable files found in this plugin89,812 lines of code in 197 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 31 | 23,633 | 39,886 | 49,083 |
JavaScript | 14 | 6,721 | 6,687 | 22,545 |
PHP | 136 | 9,690 | 17,507 | 15,975 |
CSS | 12 | 209 | 60 | 1,646 |
JSON | 2 | 0 | 0 | 497 |
SVG | 1 | 0 | 1 | 52 |
Markdown | 1 | 11 | 0 | 14 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 12.84 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 78.00 |
Average method complexity | 2.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 101 | |
▷ Abstract classes | 2 | 1.98% |
▷ Concrete classes | 99 | 98.02% |
▷ Final classes | 0 | 0.00% |
Methods | 677 | |
▷ Static methods | 4 | 0.59% |
▷ Public methods | 675 | 99.70% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 0.30% |
Functions | 432 | |
▷ Named functions | 428 | 99.07% |
▷ Anonymous functions | 4 | 0.93% |
Constants | 9 | |
▷ Global constants | 9 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
11 PNG files occupy 0.75MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
lib/acf/assets/inc/datepicker/images/ui-bg_highlight-soft_0_ffffff_1x100.png | 0.08KB | 0.08KB | 0.00% |
lib/acf/assets/inc/select2/3/select2x2.png | 0.64KB | 0.77KB | 0.00% |
screenshot-2.png | 302.35KB | 94.14KB | ▼ 68.86% |
lib/acf/assets/images/acf-logo.png | 3.40KB | 3.39KB | 0.23% |
screenshot-4.png | 98.74KB | 30.20KB | ▼ 69.42% |