Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.02MB] [CPU: ▼9.70ms] Passed 4 tests
An overview of server-side resources used by Easy Social Links
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 38.48 ▼5.10 |
Dashboard /wp-admin | 3.32 ▲0.02 | 48.11 ▼4.80 |
Posts /wp-admin/edit.php | 3.37 ▲0.02 | 48.78 ▼6.30 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.02 | 85.86 ▼22.61 |
Media Library /wp-admin/upload.php | 3.24 ▲0.02 | 37.78 ▲1.60 |
Social Links /wp-admin/tools.php?page=easy-social-links | 3.24 | 32.17 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
mbesl-version |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Easy Social Links: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲60 | 13.28 ▼0.93 | 1.65 ▼0.33 | 44.09 ▲1.24 |
Dashboard /wp-admin | 2,222 ▲25 | 5.83 ▼0.03 | 98.11 ▼12.45 | 37.03 ▼2.76 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.00 ▼0.00 | 37.56 ▼0.17 | 33.66 ▲0.04 |
Add New Post /wp-admin/post-new.php | 1,548 ▲23 | 23.39 ▲5.84 | 643.83 ▲46.00 | 53.93 ▼3.22 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.25 ▲0.05 | 97.54 ▼0.69 | 42.49 ▼3.90 |
Social Links /wp-admin/tools.php?page=easy-social-links | 2,258 | 1.92 | 41.57 | 42.99 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The uninstall procedure has failed, leaving 7 options in the database
- can_compress_scripts
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-comments
- mbesl-version
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 4× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/easy-social-links/easy-social-links.php
- > /wp-content/plugins/easy-social-links/includes/class-base.php
- > /wp-content/plugins/easy-social-links/includes/class-shortcode.php
- > /wp-content/plugins/easy-social-links/includes/class-submenu.php
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to a member function build_social_medias() on null in wp-content/plugins/easy-social-links/includes/template-submenu.php:15
- > PHP Notice
Trying to get property 'Submenu' of non-object in wp-content/plugins/easy-social-links/includes/template-submenu.php on line 15
- > PHP Fatal error
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: social, shortcode
easy-social-links/easy-social-links.php 92% from 13 tests
The primary PHP file in "Easy Social Links" version 1.0.4 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
Good job! No executable or dangerous file extensions detected875 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 85 | 14 | 507 |
CSS | 2 | 44 | 29 | 227 |
JavaScript | 1 | 17 | 2 | 141 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 10.50 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 29.00 |
Average method complexity | 3.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 18 | 94.74% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 1 | 5.26% |
Functions | 1 | |
▷ Named functions | 1 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin