83% wp-social-meta

Code Review | WP Social Meta

WordPress plugin WP Social Meta scored 83% from 54 tests.

About plugin

  • Plugin page: wp-social-meta
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.4.2
  • WordPress version: 6.3.1
  • First release: Apr 4, 2015
  • Latest release: Mar 17, 2016
  • Number of updates: 8
  • Update frequency: every 44.0 days
  • Top authors: bulktheme (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

70+ active / 3,457 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully

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

Server-side resources used by WP Social Meta
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0439.94 ▲1.10
Dashboard /wp-admin3.34 ▲0.0443.48 ▼3.01
Posts /wp-admin/edit.php3.40 ▲0.0446.35 ▼1.75
Add New Post /wp-admin/post-new.php5.94 ▲0.0686.11 ▼7.00
Media Library /wp-admin/upload.php3.27 ▲0.0435.08 ▼0.59

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

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

Browser metrics Passed 4 tests

Checking browser requirements for WP Social Meta
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,878 ▲14313.60 ▼1.012.85 ▲1.2253.21 ▲5.09
Dashboard /wp-admin2,226 ▲415.86 ▲0.02101.35 ▼0.7639.23 ▼1.57
Posts /wp-admin/edit.php2,112 ▲232.05 ▲0.0541.55 ▲2.6335.23 ▼2.73
Add New Post /wp-admin/post-new.php6,512 ▲4,98420.34 ▲1.91846.40 ▲206.8266.74 ▲6.99
Media Library /wp-admin/upload.php1,402 ▲234.21 ▲0.0096.44 ▼7.0542.97 ▼1.18

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-social-meta/wpsm.php:12

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 87% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Facebook preview using wp-social-meta plugin.), #2 (Google plus preview using wp-social-meta plugin.), #3 (Twitter preview using wp-social-meta plugin.), #4 (Add social meta information from WordPress dashboard in post or in page.), #5 (Add default social meta information in WordPress dashboard WP Social Meta settings.), #6 (Getting social meta when posting on Facebook.), #7 (Google plus social meta preview.)
  • Tags: There are too many tags (15 tag instead of maximum 10)
Please take inspiration from this readme.txt

wp-social-meta/wpsm.php 85% from 13 tests

The main PHP file in "WP Social Meta" ver. 1.0.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-social-meta.php" instead of "wpsm.php")
  • Description: Please don't use more than 140 characters for the plugin description (currently 374 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected231 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP14126188
JavaScript214143

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.22
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

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-7.png106.83KB41.46KB▼ 61.19%