83% my-facebook-tags

Code Review | My Social Tags

WordPress plugin My Social Tags scored83%from 54 tests.

About plugin

  • Plugin page: my-facebook-tags
  • Plugin version: 2.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.7
  • WordPress version: 6.3.1
  • First release: Oct 3, 2017
  • Latest release: Mar 15, 2021
  • Number of updates: 18
  • Update frequency: every 70.0 days
  • Top authors: vishwaupesh (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

10+ active /2,273 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.68MB] [CPU: ▼16.70ms] Passed 4 tests

A check of server-side resources used by My Social Tags
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0234.44 ▼5.98
Dashboard /wp-admin3.33 ▲0.0248.20 ▼3.19
Posts /wp-admin/edit.php3.38 ▲0.0251.74 ▲3.46
Add New Post /wp-admin/post-new.php3.12 ▼2.7737.96 ▼57.91
Media Library /wp-admin/upload.php3.25 ▲0.0239.63 ▲0.27

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for My Social Tags
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,814 ▲2814.21 ▼0.352.31 ▲0.2643.46 ▼2.91
Dashboard /wp-admin2,192 ▲215.75 ▲0.1588.74 ▼10.7043.79 ▲2.12
Posts /wp-admin/edit.php2,103 ▼01.95 ▼0.0344.09 ▲3.2638.69 ▲2.67
Add New Post /wp-admin/post-new.php6,327 ▲4,79921.06 ▼2.09894.03 ▲273.4372.57 ▲18.29
Media Library /wp-admin/upload.php1,397 ▼34.23 ▲0.00100.31 ▲2.6044.12 ▼0.50

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/my-facebook-tags/my-social-tags.php:25

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Donate link: Please fix this invalid URI: ""
  • Screenshots: These screenshots do not have images: #1 (Meta Tags), #2 (Screen Options), #3 (Additional Metadata Fields)
Please take inspiration from this readme.txt

my-facebook-tags/my-social-tags.php 85% from 13 tests

The main file in "My Social Tags" v. 2.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 285 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("my-facebook-tags.php" instead of "my-social-tags.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected121 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11815121

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.49
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%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG files were detected