68% stampd-io-blockchain-stamping

Code Review | STAMPD.IO - Blockchain Stamping

WordPress plugin STAMPD.IO - Blockchain Stamping scored68%from 54 tests.

About plugin

  • Plugin page: stampd-io-blockch...
  • Plugin version: 1.3.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-6.0.1
  • WordPress version: 6.3.1
  • First release: Dec 18, 2018
  • Latest release: Jul 29, 2022
  • Number of updates: 7
  • Update frequency: every 188.4 days
  • Top authors: stampdio (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /773 total downloads

Benchmarks

Plugin footprint 65% 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.86MB] [CPU: ▼30.50ms] Passed 4 tests

Analyzing server-side resources used by STAMPD.IO - Blockchain Stamping
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.0938.30 ▼0.37
Dashboard /wp-admin3.09 ▼0.2224.88 ▼21.65
Posts /wp-admin/edit.php3.09 ▼0.2723.15 ▼24.61
Add New Post /wp-admin/post-new.php3.09 ▼2.8022.53 ▼61.19
Media Library /wp-admin/upload.php3.09 ▼0.1421.45 ▼14.56
Stampd.io /wp-admin/options-general.php?page=stampd_ext_wp_plugin_options3.0923.28

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
db_upgraded
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for STAMPD.IO - Blockchain Stamping
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲7313.26 ▼1.121.74 ▼0.0437.81 ▼15.04
Dashboard /wp-admin2,211 ▲295.81 ▼0.07102.08 ▼1.0840.22 ▼4.08
Posts /wp-admin/edit.php2,094 ▲52.01 ▲0.0435.91 ▼5.2133.42 ▼1.67
Add New Post /wp-admin/post-new.php6,498 ▲4,96423.19 ▲0.20852.23 ▲208.9153.09 ▼2.83
Media Library /wp-admin/upload.php1,399 ▲114.22 ▲0.0393.66 ▼12.0240.21 ▼5.58
Stampd.io /wp-admin/options-general.php?page=stampd_ext_wp_plugin_options9142.0224.1242.16

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=stampd_ext_wp_plugin_options
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

SRP 50% from 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
Please fix the following
  • 3× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/stampd-io-blockchain-stamping/stampd-ext-wordpress.php:147
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/stampd-io-blockchain-stamping/templates/post-metabox.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/stampd-io-blockchain-stamping/templates/admin-settings-page.php:29

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 90% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
  • Donate link: Invalid url: ""
Please take inspiration from this readme.txt

stampd-io-blockchain-stamping/stampd-ext-wordpress.php 85% from 13 tests

This is the main PHP file of "STAMPD.IO - Blockchain Stamping" version 1.3.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("stampd-io-blockchain-stamping.php" instead of "stampd-ext-wordpress.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 146 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin1,140 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
PHP3150207689
Sass68647414
JavaScript261226
CSS233911

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity52.00
▷ Minimum class complexity52.00
▷ Maximum class complexity52.00
Average method complexity2.42
▷ Minimum method complexity1.00
▷ Maximum method complexity31.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods36
▷ Static methods00.00%
▷ Public methods2466.67%
▷ Protected methods00.00%
▷ Private methods1233.33%
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

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin