74% easy-select-and-share

Code Review | Easy Select and Share

WordPress plugin Easy Select and Share scored74%from 54 tests.

About plugin

  • Plugin page: easy-select-and-s...
  • Plugin version: 1.0.8
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.4.1
  • WordPress version: 6.3.1
  • First release: May 5, 2021
  • Latest release: Nov 24, 2023
  • Number of updates: 10
  • Update frequency: every 93.3 days
  • Top authors: solwininfotech (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /631 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▲0.47MB] [CPU: ▲2.47ms] Passed 4 tests

This is a short check of server-side resources used by Easy Select and Share
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.12 ▲0.6545.59 ▲5.36
Dashboard /wp-admin3.77 ▲0.421,250.03 ▲1,189.43
Posts /wp-admin/edit.php3.89 ▲0.5350.06 ▲1.31
Add New Post /wp-admin/post-new.php6.35 ▲0.4797.85 ▼1.98
Media Library /wp-admin/upload.php3.70 ▲0.4738.13 ▲5.21

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 56 new files
Database: 1 new table, 6 new options
New tables
wp_sas_log
New WordPress options
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Easy Select and Share
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,081 ▲33413.86 ▼0.3710.60 ▲8.9543.27 ▲0.68
Dashboard /wp-admin2,308 ▲1375.66 ▼0.0490.33 ▼3.8343.40 ▼9.92
Posts /wp-admin/edit.php2,118 ▲182.02 ▲0.0139.91 ▲0.4036.74 ▼6.46
Add New Post /wp-admin/post-new.php1,546 ▲2023.39 ▲0.21601.32 ▲2.8055.30 ▼6.50
Media Library /wp-admin/upload.php1,421 ▲214.24 ▲0.0195.44 ▲1.5642.10 ▲1.80

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure failed, leaving 1 table in the database
    • wp_sas_log
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however 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
Please fix the following
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/easy-select-and-share/class-easyselectandshare.php:39

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed: You can take inspiration from this readme.txt

easy-select-and-share/easy-select-and-share.php Passed 13 tests

The main file in "Easy Select and Share" v. 1.0.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
62 characters long description:
Share your selected Post content to social networks instantly.

Code Analysis 97% from 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
Good job! No executable or dangerous file extensions detected18,704 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
SVG40128,955
JavaScript66604594,365
CSS8396472,911
PHP4872092,473

PHP code 50% from 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
  • Method cyclomatic complexity has to be reduced to less than 100 (currently 146)
Cyclomatic complexity
Average complexity per logical line of code0.50
Average class complexity237.00
▷ Minimum class complexity107.00
▷ Maximum class complexity367.00
Average method complexity17.21
▷ Minimum method complexity1.00
▷ Maximum method complexity146.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods31
▷ Static methods00.00%
▷ Public methods31100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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
18 PNG files occupy 0.28MB with 0.13MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
asset/images/image-layouts.png87.02KB35.34KB▼ 59.39%
admin/css/images/ui-icons_444444_256x240.png6.84KB4.18KB▼ 38.90%
admin/images/ui-icons_444444_256x240.png6.83KB4.17KB▼ 38.86%
admin/images/preset-layouts.png75.39KB29.92KB▼ 60.31%
admin/images/logo.png2.15KB1.52KB▼ 29.24%