84% socialized

Code Review | Socialized

WordPress plugin Socialized scored84%from 54 tests.

About plugin

  • Plugin page: socialized
  • Plugin version: 4.0.0
  • PHP compatiblity: 5.6.20+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.3
  • WordPress version: 6.3.1
  • First release: May 31, 2019
  • Latest release: Sep 28, 2023
  • Number of updates: 50
  • Update frequency: every 31.6 days
  • Top authors: tessawatkinsllc (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,760 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.64MB] [CPU: ▲4.10ms] Passed 4 tests

This is a short check of server-side resources used by Socialized
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /4.04 ▲0.5754.81 ▲12.35
Dashboard /wp-admin3.96 ▲0.6551.12 ▼4.18
Posts /wp-admin/edit.php4.07 ▲0.7156.11 ▲7.60
Add New Post /wp-admin/post-new.php6.58 ▲0.69110.15 ▲3.09
Media Library /wp-admin/upload.php3.88 ▲0.6544.90 ▲9.90
Socialized /wp-admin/tools.php?page=socialized3.9344.88

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 2,068 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
socialized_all_slugs
can_compress_scripts
widget_theysaidso_widget
socialized_version
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Checking browser requirements for Socialized
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,810 ▲6413.25 ▼1.112.13 ▲0.3342.77 ▲0.55
Dashboard /wp-admin2,213 ▲224.86 ▲0.0198.60 ▼4.4037.65 ▲0.18
Posts /wp-admin/edit.php2,093 ▲42.01 ▲0.0138.59 ▼3.3936.03 ▲1.35
Add New Post /wp-admin/post-new.php6,748 ▲5,20621.31 ▲3.16953.24 ▲341.1381.07 ▲26.08
Media Library /wp-admin/upload.php1,392 ▲14.16 ▼0.0794.53 ▼7.3641.59 ▼0.74
Socialized /wp-admin/tools.php?page=socialized1,5065.3848.3060.64

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • socialized_version
    • theysaidso_admin_options
    • socialized_all_slugs
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, 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 fix the following items
  • 3× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/socialized/templates/edit-metabox.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/socialized/templates/dashboard-admin.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/socialized/templates/dashboard-support.php:3

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 94% from 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
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 18 tag instead of maximum 10
You can look at the official readme.txt

socialized/socialized.php 92% from 13 tests

The main PHP file in "Socialized" ver. 4.0.0 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 150 characters long)

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
No dangerous file extensions were detected16,869 lines of code in 2,057 files:
LanguageFilesBlank linesComment linesLines of code
CSS102,760936,593
JavaScript124992085,909
PHP101701,0512,342
SVG2,025002,025

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.53
Average class complexity76.20
▷ Minimum class complexity21.00
▷ Maximum class complexity113.00
Average method complexity6.22
▷ Minimum method complexity1.00
▷ Maximum method complexity49.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods72
▷ Static methods3345.83%
▷ Public methods6184.72%
▷ Protected methods00.00%
▷ Private methods1115.28%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
9 compressed PNG files occupy 0.01MB
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/images/admin-logo.png5.36KB5.48KB0.00%
assets/images/icon_link_32.png0.34KB0.36KB0.00%
assets/images/icon_facebook_32.png0.22KB0.22KB0.00%
assets/images/icon_email_32.png0.26KB0.26KB0.00%
assets/images/icon_twitter_32.png0.29KB0.30KB0.00%