89% dts-simple-share

Code Review | Simple Share

WordPress plugin Simple Share scored89%from 54 tests.

About plugin

  • Plugin page: dts-simple-share
  • Plugin version: 0.5.3
  • PHP version: 7.4.16
  • WordPress compatibility: 2.8-5.8
  • WordPress version: 6.3.1
  • First release: Jul 24, 2017
  • Latest release: Jul 24, 2021
  • Number of updates: 49
  • Update frequency: every 29.8 days
  • Top authors: MissionMike (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /1,550 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.03MB] [CPU: ▼8.78ms] Passed 4 tests

This is a short check of server-side resources used by Simple Share
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.43 ▼1.36
Dashboard /wp-admin3.36 ▲0.0150.60 ▼11.58
Posts /wp-admin/edit.php3.41 ▲0.0548.16 ▼2.93
Add New Post /wp-admin/post-new.php5.94 ▲0.0586.22 ▼19.25
Media Library /wp-admin/upload.php3.28 ▲0.0538.86 ▲2.14
Simple Share /wp-admin/options-general.php?page=dts-simple-share3.2834.44

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

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

Browser metrics Passed 4 tests

Simple Share: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,886 ▲12513.46 ▼0.908.35 ▲6.4538.72 ▼5.46
Dashboard /wp-admin2,207 ▲335.64 ▲0.0690.32 ▼8.2337.85 ▼7.05
Posts /wp-admin/edit.php2,116 ▲162.20 ▲0.1837.02 ▲0.9931.43 ▼9.10
Add New Post /wp-admin/post-new.php1,537 ▲1123.42 ▲0.41685.17 ▼20.5756.44 ▼0.86
Media Library /wp-admin/upload.php1,412 ▲154.19 ▲0.0496.58 ▼10.5743.23 ▼2.24
Simple Share /wp-admin/options-general.php?page=dts-simple-share1,1382.1032.0945.48

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Screenshots: Add descriptions for screenshots #1, #2, #3 in dts-simple-share/assets to your readme.txt
  • Tags: Please delete some tags, you are using 11 tag instead of maximum 10
You can take inspiration from this readme.txt

dts-simple-share/dts-simple-share.php Passed 13 tests

"Simple Share" version 0.5.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
138 characters long description:
Simple social media and email sharebar. Specify platforms and location, or use shortcode [dts_sharebar] wherever you want them to show up!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin4,505 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
SVG1043,531
PHP8305217616
CSS35534242
JavaScript2384116

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
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%
Functions37
▷ Named functions2670.27%
▷ Anonymous functions1129.73%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin