89% simplesocial

Code Review | SimpleSocial

WordPress plugin SimpleSocial scored89%from 54 tests.

About plugin

  • Plugin page: simplesocial
  • Plugin version: 2022...
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.0
  • WordPress version: 6.3.1
  • First release: May 13, 2016
  • Latest release: Jun 1, 2022
  • Number of updates: 28
  • Update frequency: every 78.9 days
  • Top authors: bhadaway (82.14%)cloudpanda (21.43%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active /4,657 total downloads

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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼3.80ms] Passed 4 tests

An overview of server-side resources used by SimpleSocial
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0339.57 ▼3.40
Dashboard /wp-admin3.34 ▲0.0450.20 ▼2.77
Posts /wp-admin/edit.php3.39 ▲0.0452.38 ▲3.68
Add New Post /wp-admin/post-new.php5.92 ▲0.0485.28 ▼12.70
Media Library /wp-admin/upload.php3.27 ▲0.0443.45 ▲9.76
SimpleSocial /wp-admin/options-general.php?page=simplesocial3.4734.89

Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by SimpleSocial
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲7013.15 ▼1.111.63 ▼0.1342.24 ▼4.61
Dashboard /wp-admin2,219 ▲285.83 ▲0.9999.90 ▼8.2246.96 ▲8.82
Posts /wp-admin/edit.php2,107 ▲182.05 ▲0.0340.18 ▲2.6843.90 ▲10.39
Add New Post /wp-admin/post-new.php1,529 ▼1317.50 ▼0.71637.07 ▼9.0854.52 ▼9.72
Media Library /wp-admin/upload.php1,401 ▲134.29 ▲0.0099.23 ▼10.5843.94 ▲0.47
SimpleSocial /wp-admin/options-general.php?page=simplesocial4,3802.0027.5838.77

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
9 plugin tags: twitter, social media icons, facebook, pinterest, instagram...

simplesocial/social.php 85% from 13 tests

"SimpleSocial" version 2022...'s main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Version: Use periods and digits only for your plugin's version number (ex. "1.0.3" instead of "2022...")
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simplesocial.php" instead of "social.php")

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
Success! There were no dangerous files found in this plugin1,934 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP215131,894
CSS18033
SVG6006
JavaScript1011

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin