72% dx-share-selection

Code Review | DX Share Selection

WordPress plugin DX Share Selection scored72%from 54 tests.

About plugin

  • Plugin page: dx-share-selection
  • Plugin version: 1.5
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.0
  • WordPress version: 6.3.1
  • First release: Nov 28, 2013
  • Latest release: Jun 24, 2022
  • Number of updates: 11
  • Update frequency: every 284.5 days
  • Top authors: devrix (81.82%)nofearinc (27.27%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /2,028 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
This plugin's installer ran successfully

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

Server-side resources used by DX Share Selection
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1041.52 ▼3.46
Dashboard /wp-admin3.39 ▲0.0949.93 ▼12.75
Posts /wp-admin/edit.php3.51 ▲0.1548.65 ▼7.15
Add New Post /wp-admin/post-new.php5.98 ▲0.0984.72 ▼24.17
Media Library /wp-admin/upload.php3.32 ▲0.0936.77 ▲0.59
DX Share Selection /wp-admin/options-general.php?page=dx-share-selection3.3636.05

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

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

Browser metrics Passed 4 tests

DX Share Selection: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,009 ▲22314.12 ▼0.2317.30 ▲14.9941.11 ▼5.07
Dashboard /wp-admin2,199 ▲195.62 ▼0.0390.10 ▲1.3341.32 ▲6.69
Posts /wp-admin/edit.php2,104 ▲41.96 ▼0.0234.54 ▲0.8333.58 ▼2.55
Add New Post /wp-admin/post-new.php1,531 ▲523.34 ▼0.30661.00 ▲0.4551.39 ▲1.41
Media Library /wp-admin/upload.php1,404 ▲74.16 ▼0.0497.73 ▼3.7742.94 ▼2.87
DX Share Selection /wp-admin/options-general.php?page=dx-share-selection1,6472.1144.7948.51

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
  • This plugin did not uninstall successfully, leaving 8 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • dxss_active
    • dxss_just_activated

Smoke tests 25% 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 no errors were found, this is by no means an exhaustive test

SRP 0% 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 items
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/dx-share-selection/templates/sidebar-right-help.php
    • > /wp-content/plugins/dx-share-selection/templates/sidebar-right-plugins.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/dx-share-selection/templates/dxss.php:10

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
These are user-side errors you should fix
    • > GET request to /wp-admin/options-general.php?page=dx-share-selection
    • > Network (severe)
    favicon.ico - Failed to load resource: the server responded with a status of 404 (Not Found)

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: Please add descriptions for these screenshots #3, #4 in dx-share-selection/assets to your readme.txt
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
You can take inspiration from this readme.txt

dx-share-selection/dx-share-selection.php 92% from 13 tests

Analyzing the main PHP file in "DX Share Selection" version 1.5
You should first fix the following items:
  • Description: The description should be shorter than 140 characters (currently 204 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
Good job! No executable or dangerous file extensions detected1,934 lines of code in 21 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript7141100729
PHP9113236713
CSS59619492

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
Average class complexity11.00
▷ Minimum class complexity2.00
▷ Maximum class complexity28.00
Average method complexity2.85
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods27
▷ Static methods933.33%
▷ Public methods27100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
js/farbtastic/wheel.png11.46KB6.53KB▼ 43.01%
images/paypalDonateButton.png5.08KB2.58KB▼ 49.21%
js/farbtastic/mask.png1.97KB4.18KB0.00%
images/admin-sprites.png6.30KB3.03KB▼ 51.85%
images/settings.png1.06KB0.96KB▼ 9.15%