84% easy-share-solution

Code Review | Easy share solution

WordPress plugin Easy share solution scored84%from 54 tests.

About plugin

  • Plugin page: easy-share-solution
  • Plugin version: 1.0.12
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Feb 25, 2016
  • Latest release: Aug 12, 2023
  • Number of updates: 35
  • Update frequency: every 77.9 days
  • Top authors: nalam (100%)

Code review

54 tests

User reviews

1 review

Install metrics

1,000+ active /21,221 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
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.09MB] [CPU: ▼1.47ms] Passed 4 tests

A check of server-side resources used by Easy share solution
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0343.90 ▲3.41
Dashboard /wp-admin3.47 ▲0.1656.76 ▲5.05
Posts /wp-admin/edit.php3.52 ▲0.1662.85 ▲10.27
Add New Post /wp-admin/post-new.php5.98 ▲0.0987.90 ▼11.83
Media Library /wp-admin/upload.php3.30 ▲0.0736.57 ▼2.51

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 22 new files
Database: no new tables, 10 new options
New WordPress options
easy_share_theme_rec
widget_recent-posts
widget_shares
widget_theysaidso_widget
easy_share_solution_settings
easy_share_solution_other_option
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Easy share solution
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,338 ▲55215.65 ▲1.2612.22 ▲10.3157.26 ▲16.43
Dashboard /wp-admin2,386 ▲2126.35 ▲0.76120.90 ▲32.7542.70 ▲2.31
Posts /wp-admin/edit.php2,314 ▲2143.64 ▲1.6158.95 ▲22.1037.01 ▼0.39
Add New Post /wp-admin/post-new.php1,567 ▲3923.24 ▲0.16654.50 ▲31.9436.37 ▼14.08
Media Library /wp-admin/upload.php1,454 ▲574.41 ▲0.2390.12 ▼12.1244.72 ▲1.06

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • This plugin did not uninstall successfully, leaving 10 options in the database
    • theysaidso_admin_options
    • widget_shares
    • can_compress_scripts
    • db_upgraded
    • easy_share_solution_other_option
    • easy_share_theme_rec
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • easy_share_solution_settings

Smoke tests 75% from 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 4× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/easy-share-solution/includes/easy-share-solution-widget.php:18
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/easy-share-solution/includes/button-share.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-share-solution/admin/src/class.settings-api.php:30
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/easy-share-solution/admin/easy-share-solution-options.php:512

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 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
You can look at the official readme.txt

easy-share-solution/easy-share-solution.php Passed 13 tests

Analyzing the main PHP file in "Easy share solution" version 1.0.12
46 characters long description:
A share toolkit that helps you share anything.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin3,655 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
PHP51963301,563
JavaScript4189140999
CSS43262892
PO File16569154
SVG10047

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.76
Average class complexity21.00
▷ Minimum class complexity3.00
▷ Maximum class complexity49.00
Average method complexity2.58
▷ Minimum method complexity1.00
▷ Maximum method complexity15.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods38
▷ Static methods00.00%
▷ Public methods38100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin