88% moneyoverip-bitcoin-donations

Code Review | TripleA Bitcoin Donations

WordPress plugin TripleA Bitcoin Donations scored 88% from 54 tests.

About plugin

  • Plugin page: moneyoverip-bitco...
  • Plugin version: 1.0.2
  • PHP compatiblity: 5.4.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.1
  • WordPress version: 5.8.1
  • First release: Mar 14, 2019
  • Latest release: Aug 21, 2019
  • Number of updates: 9
  • Update frequency: every 18.1 days
  • Top authors: moneyoverip (88.89%)tripleatechnology (22.22%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,572 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼143.97ms] Passed 4 tests

Server-side resources used by TripleA Bitcoin Donations
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.91 ▲0.0728.78 ▼0.36
Dashboard /wp-admin3.13 ▲0.0741.86 ▼2.39
Posts /wp-admin/edit.php3.24 ▲0.1336.31 ▲0.39
Add New Post /wp-admin/post-new.php5.49 ▲0.0575.57 ▼571.05
Media Library /wp-admin/upload.php3.07 ▲0.0725.07 ▼2.08
Bitcoin Donations /wp-admin/options-general.php?page=moneyoverip-bitcoin-donations3.1026.13

Server storage [IO: ▲0.05MB] [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: 25 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for TripleA Bitcoin Donations
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,784 ▲18316.48 ▲0.9010.85 ▲5.7676.51 ▼0.56
Dashboard /wp-admin2,939 ▲436.15 ▼0.02117.05 ▼17.25169.30 ▼8.66
Posts /wp-admin/edit.php2,752 ▲123.24 ▲0.0065.95 ▲1.85139.93 ▲0.93
Add New Post /wp-admin/post-new.php3,750 ▲10518.58 ▲0.21423.75 ▼21.01160.77 ▲2.89
Media Library /wp-admin/upload.php1,761 ▲95.53 ▲0.00136.90 ▼8.86181.18 ▼5.50
Bitcoin Donations /wp-admin/options-general.php?page=moneyoverip-bitcoin-donations2,2032.4559.92125.73

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
This plugin's uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
  • 5 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=moneyoverip-bitcoin-donations
    • > Notice in wp-content/plugins/moneyoverip-bitcoin-donations/admin/partials/moneyoverip-bitcoin-donations-admin-display.php+24
    Trying to access array offset on value of type bool

SRP 50% from 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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/moneyoverip-bitcoin-donations/admin/partials/moneyoverip-bitcoin-donations-admin-display.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: gateway, charity, tips, donation, triplea...

moneyoverip-bitcoin-donations/moneyoverip-bitcoin-donations.php 92% from 13 tests

The primary PHP file in "TripleA Bitcoin Donations" version 1.0.2 is used by WordPress to initiate all plugin functionality
The following require your attention:
  • Description: Keep the plugin description shorter than 140 characters (currently 335 characters long)

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
No dangerous file extensions were detected559 lines of code in 16 files:
LanguageFilesBlank linesComment linesLines of code
PHP12144607479
JavaScript2187557
CSS27823

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity2.57
▷ Minimum class complexity1.00
▷ Maximum class complexity9.00
Average method complexity1.39
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods28
▷ Static methods27.14%
▷ Public methods2382.14%
▷ Protected methods00.00%
▷ Private methods517.86%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG images were found in this plugin