78% start-simple-share

Code Review | Start Simple Share

WordPress plugin Start Simple Share scored78%from 54 tests.

About plugin

  • Plugin page: start-simple-share
  • Plugin version: 0.0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-4.4
  • WordPress version: 6.3.1
  • First release: Jul 13, 2015
  • Latest release: Dec 15, 2015
  • Number of updates: 12
  • Update frequency: every 12.9 days
  • Top authors: shahalom (100%)

Code review

54 tests

User reviews

1 review

Install metrics

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

Analyzing server-side resources used by Start Simple Share
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0234.21 ▼7.64
Dashboard /wp-admin3.32 ▲0.0244.69 ▼1.93
Posts /wp-admin/edit.php3.37 ▲0.0240.53 ▼4.11
Add New Post /wp-admin/post-new.php5.92 ▲0.0379.36 ▼12.61
Media Library /wp-admin/upload.php3.24 ▲0.0237.16 ▲4.27

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 52 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
_msbd_sssp_options

Browser metrics Passed 4 tests

A check of browser resources used by Start Simple Share
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,844 ▲7313.35 ▼1.031.69 ▼0.3339.68 ▼3.65
Dashboard /wp-admin2,224 ▲335.79 ▲0.7299.00 ▼6.6882.20 ▲43.46
Posts /wp-admin/edit.php2,101 ▲122.02 ▲0.0035.44 ▼1.7232.48 ▼1.63
Add New Post /wp-admin/post-new.php1,682 ▲14922.39 ▼0.80747.46 ▲142.4456.66 ▲2.62
Media Library /wp-admin/upload.php1,403 ▲154.12 ▼0.11104.91 ▲5.6343.54 ▲1.99

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
These items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • _msbd_sssp_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/start-simple-share/libs/sssp_buttons.php
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/start-simple-share/main.php:13

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% 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
9 plugin tags: share url, share pages, share website, share articles, twitter share...

start-simple-share/main.php 85% from 13 tests

The primary PHP file in "Start Simple Share" version 0.0.5 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("start-simple-share.php" instead of "main.php")
  • Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug

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
Success! There were no dangerous files found in this plugin5,803 lines of code in 43 files:
LanguageFilesBlank linesComment linesLines of code
CSS40121,666
Sass15100251,502
LESS1323331,247
PHP7422237851
SVG100520
Ruby1009
JavaScript2808

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.45
Average class complexity11.75
▷ Minimum class complexity4.00
▷ Maximum class complexity31.00
Average method complexity2.72
▷ Minimum method complexity1.00
▷ Maximum method complexity12.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods25
▷ Static methods728.00%
▷ Public methods25100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions26
▷ Named functions26100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/msbd_logo.png28.81KB9.10KB▼ 68.41%
images/msbd_favicon_32.png1.12KB1.20KB0.00%
images/msbd_favicon_16.png0.61KB0.63KB0.00%