78% wordstamp

Code Review | Wordstamp

WordPress plugin Wordstamp scored78%from 54 tests.

About plugin

  • Plugin page: wordstamp
  • Plugin version: 1.7
  • PHP compatiblity: 7.1.3+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.7.2
  • WordPress version: 6.3.1
  • First release: Feb 4, 2021
  • Latest release: Sep 17, 2021
  • Number of updates: 14
  • Update frequency: every 16.1 days
  • Top authors: wordstamp (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /2,570 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

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

Server-side resources used by Wordstamp
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.33 ▼4.96
Dashboard /wp-admin3.32 ▼0.0353.56 ▼13.92
Posts /wp-admin/edit.php3.37 ▲0.0150.48 ▼1.76
Add New Post /wp-admin/post-new.php5.90 ▲0.0191.00 ▼17.38
Media Library /wp-admin/upload.php3.24 ▲0.0137.71 ▲0.84
Wordstamp /wp-admin/options-general.php?page=blockchain-validation3.2534.94

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 31 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments
db_upgraded
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Wordstamp
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,973 ▲21214.01 ▼0.3716.65 ▲14.4430.26 ▼13.29
Dashboard /wp-admin2,204 ▲245.60 ▼0.0885.98 ▼12.3645.27 ▲0.86
Posts /wp-admin/edit.php2,109 ▲92.15 ▲0.1435.25 ▼0.5036.10 ▼2.14
Add New Post /wp-admin/post-new.php6,249 ▲4,70422.03 ▼1.17901.48 ▲198.0555.56 ▼13.16
Media Library /wp-admin/upload.php1,406 ▲94.21 ▼0.0597.04 ▼13.3643.28 ▼4.81
Wordstamp /wp-admin/options-general.php?page=blockchain-validation9212.0524.5025.54

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
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wordstamp/abouts.php
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wordstamp/verify_file.php:70
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wordstamp/custom_meta_box.php:47
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wordstamp/settings.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wordstamp/kirim_content.php:2
    • > PHP Fatal error
      Uncaught Error: Class 'Wordstamp_List_Table' not found in wp-content/plugins/wordstamp/history.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wordstamp/blockchain-validation.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Screenshots: These screenshots lack descriptions #4, #5 in wordstamp/assets to your readme.txt
Please take inspiration from this readme.txt

wordstamp/blockchain-validation.php 85% from 13 tests

The main PHP file in "Wordstamp" ver. 1.7 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 171 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wordstamp.php" instead of "blockchain-validation.php")

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
There were no executable files found in this plugin9,213 lines of code in 15 files:
LanguageFilesBlank linesComment linesLines of code
CSS20138,480
PHP916555522
JavaScript43311211

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity11.00
▷ Minimum class complexity11.00
▷ Maximum class complexity11.00
Average method complexity2.43
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods571.43%
▷ Protected methods00.00%
▷ Private methods228.57%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants5100.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
2 compressed PNG files occupy 0.00MB
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/json-file.png0.92KB0.84KB▼ 8.40%
images/pdf.png0.83KB0.75KB▼ 9.40%