90% mightyshare

Code Review | MightyShare - Auto-Generated Social Media Images

WordPress plugin MightyShare - Auto-Generated Social Media Images scored90%from 54 tests.

About plugin

  • Plugin page: mightyshare
  • Plugin version: 1.3.10
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-6.3
  • WordPress version: 6.3.1
  • First release: May 18, 2022
  • Latest release: Oct 28, 2023
  • Number of updates: 30
  • Update frequency: every 17.6 days
  • Top authors: mightyshare (100%)

Code review

54 tests

User reviews

4 reviews

Install metrics

200+ active /3,470 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.61MB] [CPU: ▼6.09ms] Passed 4 tests

An overview of server-side resources used by MightyShare - Auto-Generated Social Media Images
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /4.01 ▲0.5541.29 ▲0.45
Dashboard /wp-admin3.94 ▲0.6048.57 ▼15.23
Posts /wp-admin/edit.php4.06 ▲0.7045.50 ▲1.69
Add New Post /wp-admin/post-new.php6.54 ▲0.6694.73 ▼7.18
Media Library /wp-admin/upload.php3.86 ▲0.6434.88 ▼2.40
MightyShare /wp-admin/options-general.php?page=mightyshare3.8741.59

Server storage [IO: ▲0.13MB] [DB: ▲0.07MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
can_compress_scripts
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for MightyShare - Auto-Generated Social Media Images
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,803 ▲5714.36 ▼0.171.69 ▼0.0541.76 ▼2.56
Dashboard /wp-admin2,209 ▲295.63 ▼0.0494.32 ▲6.5144.13 ▲6.61
Posts /wp-admin/edit.php2,112 ▲122.00 ▲0.0533.18 ▼4.1534.45 ▲2.70
Add New Post /wp-admin/post-new.php13,962 ▲12,43619.26 ▼4.35969.75 ▲270.8544.39 ▼15.76
Media Library /wp-admin/upload.php1,408 ▲84.14 ▼0.0694.60 ▼9.6341.52 ▼4.98
MightyShare /wp-admin/options-general.php?page=mightyshare8,9363.8061.6629.13

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

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: open graph images, social preview, social media, twitter card, open graph

mightyshare/mightyshare.php Passed 13 tests

The main file in "MightyShare - Auto-Generated Social Media Images" v. 1.3.10 serves as a complement to information provided in readme.txt and as the entry point to the plugin
68 characters long description:
Automatically generate social share preview images with MightyShare!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected3,016 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP42561012,774
CSS100160
JavaScript111282

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.61
Average class complexity45.60
▷ Minimum class complexity5.00
▷ Maximum class complexity85.00
Average method complexity7.26
▷ Minimum method complexity1.00
▷ Maximum method complexity38.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods37
▷ Static methods00.00%
▷ Public methods37100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions10
▷ Named functions660.00%
▷ Anonymous functions440.00%
Constants3
▷ Global constants3100.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
There are no PNG files in this plugin