84% simple-share-sticky

Code Review | Simple Share Sticky

WordPress plugin Simple Share Sticky scored84%from 54 tests.

About plugin

  • Plugin page: simple-share-sticky
  • Plugin version: 0.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.5.3
  • WordPress version: 6.3.1
  • First release: Jul 12, 2016
  • Latest release: Aug 19, 2016
  • Number of updates: 4
  • Update frequency: every 9.5 days
  • Top authors: mariodabek (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,023 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Simple Share Sticky
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0540.65 ▲2.80
Dashboard /wp-admin3.34 ▼0.0055.17 ▼5.72
Posts /wp-admin/edit.php3.39 ▲0.0443.74 ▼0.36
Add New Post /wp-admin/post-new.php5.92 ▲0.0487.50 ▼4.91
Media Library /wp-admin/upload.php3.26 ▲0.0435.53 ▲0.55
Share Sticky /wp-admin/options-general.php?page=simple-share-sticky/simple-share-sticky.php3.2333.36

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 42 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-posts
widget_recent-comments
theysaidso_admin_options

Browser metrics Passed 4 tests

An overview of browser requirements for Simple Share Sticky
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,909 ▲16314.72 ▲0.455.37 ▲3.8239.24 ▼6.18
Dashboard /wp-admin2,203 ▲225.62 ▼0.0383.43 ▼15.8241.10 ▲2.64
Posts /wp-admin/edit.php2,105 ▲82.01 ▲0.0637.21 ▲1.1131.61 ▼0.33
Add New Post /wp-admin/post-new.php1,524 ▼218.72 ▼4.30428.90 ▼183.7653.27 ▲1.46
Media Library /wp-admin/upload.php1,405 ▲54.09 ▼0.1096.39 ▼8.5045.07 ▲0.77
Share Sticky /wp-admin/options-general.php?page=simple-share-sticky/simple-share-sticky.php8472.0226.4839.68

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
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 75% 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)
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/simple-share-sticky/simple-share-sticky.php:137

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 Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: social sharing, simple share sticky, simple sticky share, simple sharing, social media...

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

Analyzing the main PHP file in "Simple Share Sticky" version 0.0.1
81 characters long description:
A simpler way to share your wordpress pages / posts / and custom post type posts.

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
Everything looks great! No dangerous files found in this plugin216 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS1191102
PHP12710102
JavaScript13012

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.70
Average class complexity36.00
▷ Minimum class complexity36.00
▷ Maximum class complexity36.00
Average method complexity6.83
▷ Minimum method complexity1.00
▷ Maximum method complexity16.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods6
▷ Static methods00.00%
▷ Public methods6100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
36 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
(invalid) assets/images/._Yelp.png4.00KB0.00KB▼ 100.00%
assets/images/Deviantart.png0.86KB0.45KB▼ 47.72%
assets/images/Behance.png1.31KB0.64KB▼ 51.45%
assets/images/Linkedin.png1.00KB0.49KB▼ 51.08%
assets/images/Google+.png1.39KB0.58KB▼ 57.86%