83% wp-social-meta-by-brozzme

Code Review | Social Meta by Brozzme

WordPress plugin Social Meta by Brozzme scored83%from 54 tests.

About plugin

  • Plugin page: wp-social-meta-by...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-5.8
  • WordPress version: 6.3.1
  • First release: Apr 24, 2015
  • Latest release: Oct 28, 2021
  • Number of updates: 26
  • Update frequency: every 91.5 days
  • Top authors: Benoti (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

70+ active /1,956 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.03MB] [CPU: ▲1.21ms] Passed 4 tests

An overview of server-side resources used by Social Meta by Brozzme
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0443.57 ▲5.16
Dashboard /wp-admin3.34 ▲0.0349.41 ▼2.91
Posts /wp-admin/edit.php3.39 ▲0.0354.22 ▲2.01
Add New Post /wp-admin/post-new.php5.92 ▲0.0392.93 ▲3.55
Media Library /wp-admin/upload.php3.26 ▲0.0338.21 ▲2.18
Social meta /wp-admin/options-general.php?page=wp-smb-options3.2337.72

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 11 new options
New WordPress options
wp_smb_gplus_settings
wp_smb_options_settings
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
wp_smb_fb_settings
db_upgraded
wp_smb_twitter_settings
can_compress_scripts
widget_theysaidso_widget
...

Browser metrics Passed 4 tests

An overview of browser requirements for Social Meta by Brozzme
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5114.23 ▼0.161.71 ▲0.0245.15 ▲1.20
Dashboard /wp-admin2,199 ▲195.55 ▼0.1082.62 ▼11.6641.26 ▼1.60
Posts /wp-admin/edit.php2,101 ▲11.99 ▼0.0436.77 ▼3.1833.53 ▼4.30
Add New Post /wp-admin/post-new.php1,539 ▲1323.24 ▲0.10666.73 ▼15.2855.42 ▼0.45
Media Library /wp-admin/upload.php1,398 ▼24.15 ▼0.0296.49 ▼8.1644.59 ▲0.14
Social meta /wp-admin/options-general.php?page=wp-smb-options9011.8539.9631.05

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

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 | 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-social-meta-by-brozzme/includes/wpsmb_options.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Tags: There are too many tags (17 tag instead of maximum 10)
Please take inspiration from this readme.txt

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

The main file in "Social Meta by Brozzme" v. 1.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:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-social-meta-by-brozzme.php" instead of "wp-social-meta-brozzme.php")
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

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
Everything looks great! No dangerous files found in this plugin1,066 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP4237104943
PO File14856111
JavaScript13512

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.36
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%
Functions52
▷ Named functions52100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG images were found in this plugin