Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/sofa-build-external-links-network/lib/HttpClient.class.php+7
Methods with the same name as their class will not be constructors in a future version of PHP; HttpClient has a deprecated constructor
Server metrics [RAM: ▼1.80MB] [CPU: ▼61.79ms] Passed 4 tests
Analyzing server-side resources used by SofA
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.20 ▼1.26 | 6.65 ▼38.21 |
Dashboard /wp-admin | 2.22 ▼1.13 | 7.20 ▼59.96 |
Posts /wp-admin/edit.php | 2.22 ▼1.14 | 6.78 ▼48.59 |
Add New Post /wp-admin/post-new.php | 2.22 ▼3.67 | 6.45 ▼100.40 |
Media Library /wp-admin/upload.php | 2.22 ▼1.01 | 6.46 ▼29.10 |
Credentials /wp-admin/admin.php?page=SofA-submenu-handle-credentials | 2.22 | 6.08 |
SofA /wp-admin/admin.php?page=SofA-top-level-handle | 2.22 | 8.00 |
Your tags /wp-admin/admin.php?page=SofA-submenu-handle-spam | 2.22 | 6.14 |
Server storage [IO: ▲0.24MB] [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: 11 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
SofA: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲88 | 14.45 ▲0.09 | 2.45 ▲0.19 | 54.15 ▲2.62 |
Dashboard /wp-admin | 2,223 ▲43 | 5.48 ▼0.05 | 100.26 ▲7.84 | 52.17 ▲10.22 |
Posts /wp-admin/edit.php | 2,128 ▲31 | 1.99 ▲0.04 | 33.40 ▼5.52 | 35.52 ▲0.52 |
Add New Post /wp-admin/post-new.php | 1,551 ▲14 | 23.24 ▲4.99 | 627.36 ▼46.94 | 49.80 ▼9.79 |
Media Library /wp-admin/upload.php | 1,434 ▲34 | 4.16 ▼0.11 | 98.81 ▼7.49 | 44.42 ▲1.23 |
Credentials /wp-admin/admin.php?page=SofA-submenu-handle-credentials | 855 | 2.03 | 24.16 | 31.49 |
SofA /wp-admin/admin.php?page=SofA-top-level-handle | 710 | 1.51 | 6.68 | 22.56 |
Your tags /wp-admin/admin.php?page=SofA-submenu-handle-spam | 870 | 4.02 | 40.54 | 43.93 |
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
The following items require your attention
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/sofa-build-external-links-network/lib/HttpClient.class.php+7
Methods with the same name as their class will not be constructors in a future version of PHP; HttpClient has a deprecated constructor
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=SofA-submenu-handle-spam
- > Deprecated in wp-content/plugins/sofa-build-external-links-network/lib/HttpClient.class.php+7
Methods with the same name as their class will not be constructors in a future version of PHP; HttpClient has a deprecated constructor
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=SofA-submenu-handle-spam
- > User notice in wp-includes/functions.php+5905
Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the maincss handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=SofA-submenu-handle-spam
- > User notice in wp-includes/functions.php+5905
Function wp_register_style was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jqueryJQplot handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=SofA-submenu-handle-spam
- > User notice in wp-includes/functions.php+5905
Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jqueryJQplot-script handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=SofA-submenu-handle-spam
- > User notice in wp-includes/functions.php+5905
Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jqueryJQplot-plugin1 handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=SofA-submenu-handle-spam
- > User notice in wp-includes/functions.php+5905
Function wp_register_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jqueryJQplot-plugin2 handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
- > GET request to /wp-admin/admin.php?page=SofA-top-level-handle
- > Warning in wp-content/plugins/sofa-build-external-links-network/lib/HttpClient.class.php+81
fsockopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known
- > GET request to /wp-admin/admin.php?page=SofA-top-level-handle
- > Warning in wp-content/plugins/sofa-build-external-links-network/lib/HttpClient.class.php+81
fsockopen(): unable to connect to sofa-for-people.com:80 (php_network_getaddresses: getaddrinfo failed: Name or service not known)
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
Almost there! Just fix the following items
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/sofa-build-external-links-network/sofa.php:14
- > 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 issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
6 plugin tags: external link, sofa, schare articles, seo, exchange links...
sofa-build-external-links-network/sofa.php 77% from 13 tests
"SofA" version The Plugin's Version...'s primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Version: Plugin version number should only contain digits separated by dots (ex. "1.0.3" instead of "The Plugin's Version...")
- Main file name: Name the main plugin file the same as the plugin slug ("sofa-build-external-links-network.php" instead of "sofa.php")
- Description: The description should be shorter than 140 characters (currently 701 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected876 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 79 | 42 | 724 |
CSS | 2 | 17 | 0 | 149 |
JavaScript | 3 | 0 | 6 | 3 |
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.25 |
Average class complexity | 52.00 |
▷ Minimum class complexity | 52.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 2.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 29.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 26 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 26 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/close-icon.png | 0.83KB | 0.78KB | ▼ 6.12% |