84% selection-sharer

Code Review | Selection Sharer by Hans van Gent

WordPress plugin Selection Sharer by Hans van Gent scored84%from 54 tests.

About plugin

  • Plugin page: selection-sharer
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 2.5-4.4
  • WordPress version: 6.3.1
  • First release: Feb 14, 2014
  • Latest release: Aug 8, 2016
  • Number of updates: 19
  • Update frequency: every 47.7 days
  • Top authors: jcvangent (89.47%)inboundrocket (15.79%)

Code review

54 tests

User reviews

21 reviews

Install metrics

3,000+ active /26,861 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
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼6.48ms] Passed 4 tests

A check of server-side resources used by Selection Sharer by Hans van Gent
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0140.61 ▼4.20
Dashboard /wp-admin3.31 ▲0.0050.86 ▼4.05
Posts /wp-admin/edit.php3.36 ▲0.0048.85 ▼1.16
Add New Post /wp-admin/post-new.php5.89 ▲0.0088.95 ▼16.51
Media Library /wp-admin/upload.php3.23 ▲0.0039.71 ▲0.40

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for Selection Sharer by Hans van Gent
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.71 ▲0.602.76 ▲0.6538.72 ▼6.94
Dashboard /wp-admin2,192 ▲125.56 ▼0.0289.02 ▼4.9437.36 ▼6.74
Posts /wp-admin/edit.php2,102 ▲22.01 ▲0.0336.99 ▼2.0432.90 ▼1.66
Add New Post /wp-admin/post-new.php1,526 ▼023.03 ▼0.65693.39 ▼4.1363.87 ▲0.57
Media Library /wp-admin/upload.php1,400 ▼04.09 ▼0.08116.35 ▼2.4746.72 ▼1.31

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, 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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/selection-sharer/selection-sharer.php:16

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
9 plugin tags: medium, facebook, selection, email, plugin...

selection-sharer/selection-sharer.php 92% from 13 tests

This is the main PHP file of "Selection Sharer by Hans van Gent" version 0.4, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 183 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin14 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP141412
CSS1001
JavaScript1001

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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%
Functions2
▷ Named functions2100.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
1 compressed PNG file occupies 0.07MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png73.01KB76.22KB0.00%