84% buy-widget-coinbase

Code Review | Buy Widget Coinbase

WordPress plugin Buy Widget Coinbase scored84%from 54 tests.

About plugin

  • Plugin page: buy-widget-coinbase
  • Plugin version: 1.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.9-4.9.8
  • WordPress version: 6.3.1
  • First release: Nov 2, 2018
  • Latest release: Nov 2, 2018
  • Number of updates: 6
  • Update frequency: every 0.7 days
  • Top authors: nurikabe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,752 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
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼13.21ms] Passed 4 tests

A check of server-side resources used by Buy Widget Coinbase
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0440.83 ▼20.18
Dashboard /wp-admin3.36 ▲0.0149.99 ▼17.68
Posts /wp-admin/edit.php3.41 ▲0.0552.42 ▼1.83
Add New Post /wp-admin/post-new.php5.94 ▲0.0583.79 ▼10.44
Media Library /wp-admin/upload.php3.28 ▲0.0533.96 ▼4.52
Buy Widget /wp-admin/options-general.php?page=coinbase-buy-widget-options3.2427.47

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

Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 3 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget
widget_buy_widget_coinbase

Browser metrics Passed 4 tests

An overview of browser requirements for Buy Widget Coinbase
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.34 ▼0.001.68 ▼0.7539.72 ▼23.78
Dashboard /wp-admin2,202 ▲225.63 ▲0.0198.24 ▼25.7241.09 ▼17.83
Posts /wp-admin/edit.php2,107 ▲71.98 ▲0.0142.47 ▲1.5236.45 ▲0.18
Add New Post /wp-admin/post-new.php1,531 ▲223.27 ▼0.43662.21 ▲31.0759.62 ▲3.22
Media Library /wp-admin/upload.php1,407 ▲104.19 ▲0.0497.54 ▼6.5342.29 ▼3.39
Buy Widget /wp-admin/options-general.php?page=coinbase-buy-widget-options7892.0327.0730.54

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
Please fix the following items
  • The uninstall procedure has failed, leaving 7 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_buy_widget_coinbase

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% 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
Please fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/buy-widget-coinbase/buy-widget-coinbase.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: bitcoin, ethereum, bitcoincash, coinbase, litecoin

buy-widget-coinbase/buy-widget-coinbase.php Passed 13 tests

The main PHP file in "Buy Widget Coinbase" ver. 1.1 adds more information about the plugin and also serves as the entry point for this plugin
60 characters long description:
Quick integration of the Coinbase "Buy Widget" for WordPress

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
Success! There were no dangerous files found in this plugin147 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP12727147

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity19.00
▷ Minimum class complexity19.00
▷ Maximum class complexity19.00
Average method complexity3.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods00.00%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions00.00%
▷ Anonymous functions1100.00%
Constants0
▷ Global constants00.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