89% donate-crypto-block

Code Review | Donate Crypto Block

WordPress plugin Donate Crypto Block scored89%from 54 tests.

About plugin

  • Plugin page: donate-crypto-block
  • Plugin version: 1.0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 14, 2020
  • Latest release: Apr 14, 2020
  • Number of updates: 3
  • Update frequency: N/A
  • Top authors: gma992 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,972 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.00MB] [CPU: ▼9.38ms] Passed 4 tests

Analyzing server-side resources used by Donate Crypto Block
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.31 ▼2.50
Dashboard /wp-admin3.31 ▼0.0358.24 ▼11.85
Posts /wp-admin/edit.php3.36 ▲0.0151.74 ▼7.59
Add New Post /wp-admin/post-new.php5.91 ▲0.0290.20 ▼13.04
Media Library /wp-admin/upload.php3.23 ▲0.0036.89 ▼5.03

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Donate Crypto Block: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.35 ▼0.241.98 ▲0.4342.24 ▲1.47
Dashboard /wp-admin2,198 ▲245.59 ▼0.0880.69 ▼14.2640.39 ▼1.53
Posts /wp-admin/edit.php2,097 ▼32.00 ▲0.0334.60 ▼2.1435.79 ▲3.17
Add New Post /wp-admin/post-new.php6,362 ▲4,83627.61 ▲4.46903.89 ▲212.5760.24 ▼8.62
Media Library /wp-admin/upload.php1,400 ▼04.20 ▼0.0494.22 ▼18.1045.81 ▼2.32

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

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 shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes: You can look at the official readme.txt

donate-crypto-block/index.php 77% from 13 tests

The entry point to "Donate Crypto Block" version 1.0.1 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("donate-crypto-block.php" instead of "index.php")
  • Text Domain: The text domain should only use lowercase characters and dashes

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected13,147 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JSON20012,933
JavaScript44183197
PHP272516
CSS1001

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin