78% unique-easy-share-posts

Code Review | Unique Easy Share Posts

WordPress plugin Unique Easy Share Posts scored78%from 54 tests.

About plugin

  • Plugin page: unique-easy-share...
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-5.0
  • WordPress version: 6.3.1
  • First release: Nov 30, 2016
  • Latest release: Jan 14, 2019
  • Number of updates: 42
  • Update frequency: every 18.6 days
  • Top authors: webkingclub (97.62%)mbDeveloperz (4.76%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,529 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.03MB] [CPU: ▼3.53ms] Passed 4 tests

A check of server-side resources used by Unique Easy Share Posts
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0333.77 ▼5.91
Dashboard /wp-admin3.34 ▲0.0445.92 ▼0.64
Posts /wp-admin/edit.php3.39 ▲0.0448.80 ▲1.77
Add New Post /wp-admin/post-new.php5.94 ▲0.0695.45 ▼9.33
Media Library /wp-admin/upload.php3.26 ▲0.0436.50 ▲3.01
UEShare Post /wp-admin/admin.php?page=wkc-mspost-share3.2233.54
Settings /wp-admin/admin.php?page=mb-shares-settings3.2128.65

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

Unique Easy Share Posts: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲9714.76 ▲0.021.49 ▼0.3642.45 ▲1.14
Dashboard /wp-admin2,226 ▲355.85 ▲1.02109.86 ▲0.4577.19 ▲32.44
Posts /wp-admin/edit.php2,127 ▲382.03 ▼0.0237.72 ▼2.7534.83 ▼0.69
Add New Post /wp-admin/post-new.php1,556 ▲1423.26 ▲5.07651.64 ▲43.8657.26 ▼7.58
Media Library /wp-admin/upload.php1,417 ▲264.18 ▼0.0295.83 ▼1.3280.71 ▲37.96
UEShare Post /wp-admin/admin.php?page=wkc-mspost-share9472.0324.9931.88
Settings /wp-admin/admin.php?page=mb-shares-settings8592.0726.3834.74

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
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=wkc-mspost-share
    • > Warning in wp-content/plugins/unique-easy-share-posts/index.php+42
    Use of undefined constant the_title - assumed 'the_title' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/admin.php?page=mb-shares-settings
    • > Warning in wp-content/plugins/unique-easy-share-posts/index.php+138
    Use of undefined constant yes - assumed 'yes' (this will throw an Error in a future version of PHP)
    • > GET request to /wp-admin/admin.php?page=mb-shares-settings
    • > Warning in wp-content/plugins/unique-easy-share-posts/index.php+139
    Use of undefined constant no - assumed 'no' (this will throw an Error in a future version of PHP)

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 is_admin() in wp-content/plugins/unique-easy-share-posts/index.php:10

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Screenshots: Add images for these screenshots: #1 (Select a post from dropdown), #2 (Preview the featured Image of the Selected Post), #3 (click on the share buttons to Share the post without refreshing the page), #4 (Add More Social Links), #5 (Settings for Showing Social Links on Front Page), #6 (Social Links Results on Front Page)
  • Tags: Please reduce the number of tags, currently 30 tag instead of maximum 10
The official readme.txt is a good inspiration

unique-easy-share-posts/index.php 92% from 13 tests

The primary PHP file in "Unique Easy Share Posts" version 1.0.1 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("unique-easy-share-posts.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin439 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
CSS303243
PHP1211160
JavaScript10036

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.26MB with 0.15MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-4.png73.27KB23.25KB▼ 68.27%
screenshot-5.png13.64KB7.91KB▼ 42.04%
screenshot-6.png10.33KB5.60KB▼ 45.81%
screenshot-2.png72.28KB24.37KB▼ 66.29%
screenshot-3.png72.10KB23.87KB▼ 66.90%