84% select-share

Code Review | Select And Share

WordPress plugin Select And Share scored 84% from 54 tests.

About plugin

  • Plugin page: select-share
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.1-4.7
  • WordPress version: 6.3.1
  • First release: Jan 30, 2016
  • Latest release: Apr 16, 2016
  • Number of updates: 5
  • Update frequency: every 64.0 days
  • Top authors: wpashokg (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 620 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.04ms] Passed 4 tests

A check of server-side resources used by Select And Share
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.61 ▼2.12
Dashboard /wp-admin3.32 ▲0.0147.08 ▼2.05
Posts /wp-admin/edit.php3.37 ▲0.0149.07 ▲4.31
Add New Post /wp-admin/post-new.php5.90 ▲0.0187.80 ▼7.92
Media Library /wp-admin/upload.php3.24 ▲0.0137.25 ▲3.93
Select And Share /wp-admin/options-general.php?page=sts3.2029.02

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Select And Share
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲8913.23 ▼1.205.34 ▲3.8346.56 ▲5.45
Dashboard /wp-admin2,210 ▲194.87 ▼1.0493.86 ▼6.5439.29 ▼5.56
Posts /wp-admin/edit.php2,093 ▲71.99 ▲0.0134.60 ▼3.5630.64 ▲0.03
Add New Post /wp-admin/post-new.php1,541 ▼123.08 ▲4.69636.69 ▲13.5154.95 ▲3.37
Media Library /wp-admin/upload.php1,389 ▲14.19 ▲0.04101.34 ▼5.0744.50 ▲0.92
Select And Share /wp-admin/options-general.php?page=sts7802.0623.4826.30

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

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)
Even though everything seems fine, this is not 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
The following issues need your attention
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/select-share/select-and-share.php:33

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
5 plugin tags: social share, social network, share, twitter, linkedin

select-share/select-and-share.php 92% from 13 tests

The main PHP file in "Select And Share" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("select-share.php" instead of "select-and-share.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin816 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
SVG100655
PHP1161765
JavaScript1241055
CSS27341

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin