78% social-page-metadata

Code Review | Social Plugin - Metadata

WordPress plugin Social Plugin - Metadata scored78%from 54 tests.

About plugin

  • Plugin page: social-page-metadata
  • Plugin version: 1.1.1
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.1
  • WordPress version: 6.3.1
  • First release: Mar 16, 2021
  • Latest release: Dec 11, 2022
  • Number of updates: 12
  • Update frequency: every 52.9 days
  • Top authors: ole1986 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /918 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.18MB] [CPU: ▼1.96ms] Passed 4 tests

A check of server-side resources used by Social Plugin - Metadata
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.1941.20 ▲0.87
Dashboard /wp-admin3.49 ▲0.1847.37 ▼3.22
Posts /wp-admin/edit.php3.60 ▲0.2443.36 ▼6.00
Add New Post /wp-admin/post-new.php6.07 ▲0.1892.76 ▲7.25
Media Library /wp-admin/upload.php3.41 ▲0.1834.15 ▲0.52
Social Plugin - Metadata /wp-admin/tools.php?page=social-plugin-metadata-plugin3.3836.81

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_social-plugin-metadata-widget
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Social Plugin - Metadata
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲6013.70 ▼0.721.71 ▼0.1248.44 ▲3.56
Dashboard /wp-admin2,210 ▲255.09 ▲0.22107.13 ▼12.9837.25 ▼14.14
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0438.75 ▲1.9532.12 ▼1.52
Add New Post /wp-admin/post-new.php1,545 ▲2418.17 ▼5.12619.99 ▼107.2654.60 ▼4.58
Media Library /wp-admin/upload.php1,392 ▲104.19 ▲0.0296.18 ▼3.5343.43 ▼1.18
Social Plugin - Metadata /wp-admin/tools.php?page=social-plugin-metadata-plugin9142.4964.4630.59

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_social-plugin-metadata-widget
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options

Smoke tests 50% from 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 0% 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
Please fix the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/social-page-metadata/social-plugin-metadata.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/social-page-metadata/widget.php:8

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: facebook, show, page info, meta data

social-page-metadata/social-plugin-metadata.php 85% from 13 tests

The main file in "Social Plugin - Metadata" v. 1.1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("social-page-metadata.php" instead of "social-plugin-metadata.php")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin835 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP313797606
JavaScript2271114
PO File130075
CSS14320
XML11120

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity22.67
▷ Minimum class complexity9.00
▷ Maximum class complexity42.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces2
Interfaces0
Traits0
Classes3
▷ Abstract classes133.33%
▷ Concrete classes266.67%
▷ Final classes00.00%
Methods29
▷ Static methods13.45%
▷ Public methods2586.21%
▷ Protected methods00.00%
▷ Private methods413.79%
Functions10
▷ Named functions00.00%
▷ Anonymous functions10100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There were not PNG files found in your plugin