90% smntcs-pinterest-save-button

Code Review | SMNTCS Pinterest Save Button

WordPress plugin SMNTCS Pinterest Save Button scored90%from 54 tests.

About plugin

  • Plugin page: smntcs-pinterest-...
  • Plugin version: 1.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.4-6.1
  • WordPress version: 6.3.1
  • First release: Jun 21, 2016
  • Latest release: Dec 3, 2022
  • Number of updates: 28
  • Update frequency: every 84.1 days
  • Top authors: nielslange (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,448 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▼0.00MB] [CPU: ▼8.50ms] Passed 4 tests

Server-side resources used by SMNTCS Pinterest Save Button
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0136.99 ▼1.17
Dashboard /wp-admin3.32 ▼0.0346.26 ▼14.23
Posts /wp-admin/edit.php3.37 ▲0.0148.82 ▼3.19
Add New Post /wp-admin/post-new.php5.90 ▲0.0193.17 ▼15.40
Media Library /wp-admin/upload.php3.24 ▲0.0136.42 ▲2.90

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
theysaidso_admin_options

Browser metrics Passed 4 tests

Checking browser requirements for SMNTCS Pinterest Save Button
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲2913.25 ▼1.121.60 ▼0.2342.93 ▲1.40
Dashboard /wp-admin2,203 ▲124.86 ▼1.0294.89 ▼5.3637.29 ▼4.48
Posts /wp-admin/edit.php2,089 ▼02.04 ▲0.0539.75 ▼0.4834.87 ▼1.83
Add New Post /wp-admin/post-new.php1,533 ▲1423.23 ▼0.07661.14 ▲26.2362.76 ▲7.61
Media Library /wp-admin/upload.php1,391 ▼04.33 ▲0.1495.26 ▼11.2142.44 ▼7.19

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments

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
Good news, no errors were detected

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
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
3 plugin tags: pinterest, pinterest button, pinterest save button

smntcs-pinterest-save-button/smntcs-pinterest-save-button.php Passed 13 tests

The principal PHP file in "SMNTCS Pinterest Save Button" v. 1.6 is loaded by WordPress automatically on each request
97 characters long description:
Adds a Pinterest Save Button to your images that becomes visible when a visitor hovers the image.

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
Good job! No executable or dangerous file extensions detected213 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP1143268
JSON20061
XML1131451
Markdown122033

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
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%
Functions2
▷ Named functions2100.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 files were detected