78% postmatic-social-commenting

Code Review | Postmatic Social Commenting

WordPress plugin Postmatic Social Commenting scored 78% from 54 tests.

About plugin

  • Plugin page: postmatic-social-...
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.4
  • WordPress version: 6.3.1
  • First release: Nov 5, 2015
  • Latest release: Mar 11, 2016
  • Number of updates: 16
  • Update frequency: every 7.9 days
  • Top authors: vernal (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

100+ active / 8,815 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

A check of server-side resources used by Postmatic Social Commenting
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0641.71 ▲0.30
Dashboard /wp-admin3.34 ▲0.0448.34 ▼2.03
Posts /wp-admin/edit.php3.45 ▲0.1050.53 ▼1.68
Add New Post /wp-admin/post-new.php5.94 ▲0.0596.42 ▲8.95
Media Library /wp-admin/upload.php3.26 ▲0.0441.20 ▲6.17
Postmatic Social Commenting /wp-admin/options-general.php?page=postmatic-social3.2833.01

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 34 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Postmatic Social Commenting
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,812 ▲5513.25 ▼0.934.51 ▲2.4340.52 ▼5.37
Dashboard /wp-admin2,218 ▲304.91 ▲0.0599.87 ▼20.7938.76 ▼6.41
Posts /wp-admin/edit.php2,101 ▲302.03 ▲0.0338.98 ▲1.3837.64 ▲2.37
Add New Post /wp-admin/post-new.php1,534 ▲118.65 ▼4.94612.20 ▼70.8449.19 ▼3.97
Media Library /wp-admin/upload.php1,397 ▲94.23 ▲0.06101.25 ▼7.1549.41 ▲1.96
Postmatic Social Commenting /wp-admin/options-general.php?page=postmatic-social9032.0526.4834.80

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 did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • can_compress_scripts
    • 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 shallow check for server-side errors
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/postmatic-social-commenting/templates/settings-wordpress.php
  • 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/postmatic-social-commenting/postmatic-social.php:93
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/postmatic-social-commenting/templates/settings-intro.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Postmatic_Social_Network_Authenticator' not found in wp-content/plugins/postmatic-social-commenting/functions/Postmatic_Social_Pinterest_Authenticator.php:3

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 is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
9 plugin tags: social, facebook, social login, wordpresscom, google...

postmatic-social-commenting/postmatic-social.php 85% from 13 tests

Analyzing the main PHP file in "Postmatic Social Commenting" version 1.1.1
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("postmatic-social-commenting.php" instead of "postmatic-social.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 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected2,528 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP132261451,447
SVG100520
CSS3213351
JavaScript22913141
PO File1264169

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity12.73
▷ Minimum class complexity1.00
▷ Maximum class complexity34.00
Average method complexity2.34
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes11
▷ Abstract classes218.18%
▷ Concrete classes981.82%
▷ Final classes00.00%
Methods101
▷ Static methods65.94%
▷ Public methods7069.31%
▷ Protected methods2423.76%
▷ Private methods76.93%
Functions0
▷ Named functions00.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
images/postmatic-logo.png5.17KB3.58KB▼ 30.79%