90% jtpp-share-buttons

Code Review | JTPP Share Buttons

WordPress plugin JTPP Share Buttons scored90%from 54 tests.

About plugin

  • Plugin page: jtpp-share-buttons
  • Plugin version: 0.1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.7
  • WordPress version: 6.3.1
  • First release: Nov 28, 2016
  • Latest release: Dec 1, 2016
  • Number of updates: 7
  • Update frequency: every 8.3 days
  • Top authors: atxyz (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /507 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
Install script ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼2.09ms] Passed 4 tests

A check of server-side resources used by JTPP Share Buttons
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.99 ▼4.28
Dashboard /wp-admin3.36 ▲0.0646.80 ▼0.84
Posts /wp-admin/edit.php3.47 ▲0.1249.02 ▲1.32
Add New Post /wp-admin/post-new.php5.94 ▲0.0688.16 ▼4.57
Media Library /wp-admin/upload.php3.28 ▲0.0634.47 ▲1.52
JTPP Share Buttons /wp-admin/options-general.php?page=jtpp_share_buttons3.2530.42

Server storage [IO: ▲0.05MB] [DB: ▲0.07MB] Passed 3 tests

A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 13 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
db_upgraded
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by JTPP Share Buttons
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4913.19 ▼1.461.59 ▼0.4137.97 ▼5.75
Dashboard /wp-admin2,207 ▲194.88 ▼1.0093.17 ▼15.0539.76 ▼0.91
Posts /wp-admin/edit.php2,093 ▲12.00 ▼0.0440.65 ▼3.4635.12 ▼5.04
Add New Post /wp-admin/post-new.php1,539 ▲623.24 ▲0.01681.20 ▲77.5760.91 ▲2.72
Media Library /wp-admin/upload.php1,395 ▲74.25 ▲0.0496.76 ▲1.8939.97 ▼0.73
JTPP Share Buttons /wp-admin/options-general.php?page=jtpp_share_buttons8762.0327.4731.18

Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 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 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
Congratulations! This plugin passed the SRP test

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)
There were no browser issues found

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (screenshot-1.png) image not found
The official readme.txt might help

jtpp-share-buttons/jtpp-share-buttons.php Passed 13 tests

This is the main PHP file of "JTPP Share Buttons" version 0.1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
82 characters long description:
You can display share-buttons at all of single posts and single pages very easily.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin583 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP42928268
CSS200221
PO File1242772
SVG10022

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.42
Average class complexity35.00
▷ Minimum class complexity35.00
▷ Maximum class complexity35.00
Average method complexity9.50
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions16
▷ Named functions1593.75%
▷ Anonymous functions16.25%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin