WordPress plugin SofA scored10%from 54 tests.

About plugin

  • Plugin page: sofa-build-extern...
  • Plugin version: The Plugin's Version...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.6
  • WordPress version: 6.3.1
  • First release: Aug 23, 2013
  • Latest release: Aug 25, 2013
  • Number of updates: 12
  • Update frequency: every 0.2 days
  • Top authors: michas.n@gmail.com (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /12,255 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.20 ▼1.266.65 ▼38.21
Dashboard /wp-admin2.22 ▼1.137.20 ▼59.96
Posts /wp-admin/edit.php2.22 ▼1.146.78 ▼48.59
Add New Post /wp-admin/post-new.php2.22 ▼3.676.45 ▼100.40
Media Library /wp-admin/upload.php2.22 ▼1.016.46 ▼29.10
Credentials /wp-admin/admin.php?page=SofA-submenu-handle-credentials2.226.08
SofA /wp-admin/admin.php?page=SofA-top-level-handle2.228.00
Your tags /wp-admin/admin.php?page=SofA-submenu-handle-spam2.226.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,845 ▲8814.45 ▲0.092.45 ▲0.1954.15 ▲2.62
Dashboard /wp-admin2,223 ▲435.48 ▼0.05100.26 ▲7.8452.17 ▲10.22
Posts /wp-admin/edit.php2,128 ▲311.99 ▲0.0433.40 ▼5.5235.52 ▲0.52
Add New Post /wp-admin/post-new.php1,551 ▲1423.24 ▲4.99627.36 ▼46.9449.80 ▼9.79
Media Library /wp-admin/upload.php1,434 ▲344.16 ▼0.1198.81 ▼7.4944.42 ▲1.23
Credentials /wp-admin/admin.php?page=SofA-submenu-handle-credentials8552.0324.1631.49
SofA /wp-admin/admin.php?page=SofA-top-level-handle7101.516.6822.56
Your tags /wp-admin/admin.php?page=SofA-submenu-handle-spam8704.0240.5443.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP27942724
CSS2170149
JavaScript3063

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 code0.25
Average class complexity52.00
▷ Minimum class complexity52.00
▷ Maximum class complexity52.00
Average method complexity2.96
▷ Minimum method complexity1.00
▷ Maximum method complexity29.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods26
▷ Static methods00.00%
▷ Public methods26100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.00%
▷ Class constants00.00%
▷ Public constants00.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
FileSize - originalSize - compressedSavings
img/close-icon.png0.83KB0.78KB▼ 6.12%