90% meks-easy-social-share

Code Review | Meks Easy Social Share

WordPress plugin Meks Easy Social Share scored90%from 54 tests.

About plugin

  • Plugin page: meks-easy-social-...
  • Plugin version: 1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.7-6.3
  • WordPress version: 6.3.1
  • First release: May 22, 2019
  • Latest release: Sep 20, 2023
  • Number of updates: 26
  • Update frequency: every 61.0 days
  • Top authors: mekshq (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

20,000+ active /196,773 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
This plugin's installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼2.24ms] Passed 4 tests

Server-side resources used by Meks Easy Social Share
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1342.24 ▲2.02
Dashboard /wp-admin3.43 ▲0.1352.76 ▲5.89
Posts /wp-admin/edit.php3.55 ▲0.1951.78 ▲2.33
Add New Post /wp-admin/post-new.php6.01 ▲0.1387.46 ▼10.67
Media Library /wp-admin/upload.php3.36 ▲0.1335.09 ▼2.65
Meks Easy Social Share /wp-admin/options-general.php?page=meks-easy-social-share3.3336.18

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Meks Easy Social Share
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,901 ▲14013.49 ▼0.8610.30 ▲8.6243.65 ▼0.20
Dashboard /wp-admin2,199 ▲225.64 ▼0.0189.58 ▲0.5737.00 ▼5.26
Posts /wp-admin/edit.php2,104 ▲42.00 ▼0.0234.84 ▼1.7937.64 ▼1.94
Add New Post /wp-admin/post-new.php1,528 ▼023.10 ▲0.19621.66 ▼39.5062.11 ▲11.78
Media Library /wp-admin/upload.php1,404 ▲44.13 ▼0.0599.15 ▼2.6244.54 ▲2.09
Meks Easy Social Share /wp-admin/options-general.php?page=meks-easy-social-share1,5862.3346.8236.46

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 96% 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
5 plugin tags: share, reddit, vkontakte, social, whatsapp

meks-easy-social-share/meks-easy-social-share.php 92% from 13 tests

The entry point to "Meks Easy Social Share" version 1.3 is a PHP file that has certain tags in its header comment area
Please take the time to fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 205 characters long)

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
There were no executable files found in this plugin1,564 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP3235165625
SVG11010495
CSS23413387
JavaScript222457

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity57.00
▷ Minimum class complexity57.00
▷ Maximum class complexity57.00
Average method complexity3.15
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods26
▷ Static methods27.69%
▷ Public methods2388.46%
▷ Protected methods00.00%
▷ Private methods311.54%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin