84% bstamp

Code Review | bStamp

WordPress plugin bStamp scored84%from 54 tests.

About plugin

  • Plugin page: bstamp
  • Plugin version: 0.1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.8-6.2
  • WordPress version: 6.3.1
  • First release: Oct 2, 2023
  • Latest release: Oct 6, 2023
  • Number of updates: 16
  • Update frequency: every 0.3 days
  • Top authors: edexa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /102 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

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

An overview of server-side resources used by bStamp
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /60.60 ▲0.0111,826,266.11 ▲8,705.92
Dashboard /wp-admin3.39 ▲0.0051.77 ▼15.26
Posts /wp-admin/edit.php3.51 ▲0.1152.63 ▼0.46
Add New Post /wp-admin/post-new.php6.00 ▲0.0788.93 ▼20.00
Media Library /wp-admin/upload.php3.32 ▲0.0445.40 ▲5.49

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 30 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for bStamp
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,869 ▲10814.70 ▲0.451.80 ▼0.1929.68 ▼12.59
Dashboard /wp-admin2,263 ▲866.05 ▲0.39111.13 ▲14.8889.14 ▲48.08
Posts /wp-admin/edit.php2,186 ▲863.06 ▲1.0246.90 ▲7.5367.10 ▲27.90
Add New Post /wp-admin/post-new.php6,491 ▲4,96523.98 ▲0.68964.75 ▲300.5456.36 ▲1.36
Media Library /wp-admin/upload.php1,483 ▲895.57 ▲1.20120.68 ▲20.3988.77 ▲44.84

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

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 items
  • 2× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/bstamp/templates/post-metabox.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_create_nonce() in wp-content/plugins/bstamp/templates/app.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: proof, blockchain, timestamp, decentralisation

bstamp/bstamp.php Passed 13 tests

"bStamp" version 0.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
133 characters long description:
A bStamp plugin that helps protect your rights in your digital creations by posting a unique imprint of your posts on the blockchain.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin13,465 lines of code in 27 files:
LanguageFilesBlank linesComment linesLines of code
JSON30012,162
PHP11142340572
JSX3282285
JavaScript4153235
Sass12585
SVG20076
CSS21026
Markdown17024

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.37
Average class complexity17.33
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.92
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods27
▷ Static methods518.52%
▷ Public methods2592.59%
▷ Protected methods00.00%
▷ Private methods27.41%
Functions17
▷ Named functions1588.24%
▷ Anonymous functions211.76%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin