78% social-media-publish

Code Review | Social Media Publish

WordPress plugin Social Media Publish scored78%from 54 tests.

About plugin

  • Plugin page: social-media-publish
  • Plugin version: 1.0.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 3, 2021
  • Latest release: Jun 5, 2021
  • Number of updates: 11
  • Update frequency: every 0.3 days
  • Top authors: bogi1991 (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /892 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼10.02ms] Passed 4 tests

This is a short check of server-side resources used by Social Media Publish
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.0641.20 ▼7.74
Dashboard /wp-admin3.41 ▲0.0251.30 ▼17.02
Posts /wp-admin/edit.php3.53 ▲0.1249.01 ▼2.68
Add New Post /wp-admin/post-new.php6.01 ▲0.0891.52 ▼12.64
Media Library /wp-admin/upload.php3.34 ▲0.0641.72 ▲3.83

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Social Media Publish
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲4713.93 ▼0.501.78 ▲0.1043.32 ▲0.09
Dashboard /wp-admin2,227 ▲505.74 ▲0.18127.15 ▲37.3247.33 ▲8.52
Posts /wp-admin/edit.php2,132 ▲322.94 ▲0.9447.30 ▲11.3734.36 ▼1.57
Add New Post /wp-admin/post-new.php6,384 ▲4,85826.17 ▲3.061,007.56 ▲300.6239.97 ▼12.67
Media Library /wp-admin/upload.php1,432 ▲295.24 ▲1.02112.95 ▲7.3045.73 ▲0.66

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/social-media-publish/admin/menu-tab-howto.php
  • 6× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-media-publish/admin/menu.php:109
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-media-publish/includes/notices.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-media-publish/includes/metabox.php:44
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-media-publish/admin/post-hook.php:47
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/social-media-publish/includes/notices.php:31
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/social-media-publish/admin/menu-tab-settings.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
  • Requires at least: Invalid version format
  • Screenshots: Add descriptions for screenshots #1, #2 in social-media-publish/assets to your readme.txt
Please take inspiration from this readme.txt

social-media-publish/social-media-publish.php Passed 13 tests

The entry point to "Social Media Publish" version 1.0.2 is a PHP file that has certain tags in its header comment area
66 characters long description:
Automatically publishing of your posts to Social Media plattforms.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin510 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP8104105410
JavaScript3265674
CSS18826

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.29
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%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin