90% shared-counts-pinterest-image

Code Review | Shared Counts - Pinterest Image

WordPress plugin Shared Counts - Pinterest Image scored90%from 54 tests.

About plugin

  • Plugin page: shared-counts-pin...
  • Plugin version: 1.4.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.6
  • WordPress version: 6.3.1
  • First release: May 24, 2018
  • Latest release: Feb 20, 2021
  • Number of updates: 6
  • Update frequency: every 167.2 days
  • Top authors: billerickson (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active /4,830 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

This is a short check of server-side resources used by Shared Counts - Pinterest Image
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.89 ▲0.19
Dashboard /wp-admin3.35 ▲0.0044.75 ▼16.59
Posts /wp-admin/edit.php3.40 ▲0.0449.60 ▲4.30
Add New Post /wp-admin/post-new.php5.95 ▲0.0690.79 ▼17.12
Media Library /wp-admin/upload.php3.27 ▲0.0434.45 ▼2.06

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

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

Browser metrics Passed 4 tests

Shared Counts - Pinterest Image: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.29 ▼1.461.65 ▼0.2444.39 ▲3.21
Dashboard /wp-admin2,206 ▲154.85 ▼1.05105.94 ▼3.0943.01 ▲0.23
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0139.58 ▼4.5135.15 ▲1.77
Add New Post /wp-admin/post-new.php1,514 ▼317.86 ▲0.15660.22 ▲4.6550.82 ▼9.29
Media Library /wp-admin/upload.php1,391 ▼04.20 ▲0.0196.15 ▼2.2543.68 ▲0.95

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
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
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 smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 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
8 plugin tags: social buttons, social sharing, sharing, pinterest, share counts...

shared-counts-pinterest-image/shared-counts-pinterest-image.php Passed 13 tests

The entry point to "Shared Counts - Pinterest Image" version 1.4.0 is a PHP file that has certain tags in its header comment area
45 characters long description:
Use a separate image for sharing on Pinterest

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin217 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP156108129
JavaScript1141549
Markdown113039

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.46
Average class complexity31.00
▷ Minimum class complexity31.00
▷ Maximum class complexity31.00
Average method complexity3.73
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods11
▷ Static methods00.00%
▷ Public methods11100.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 Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin