83% bitmate-author-donations

Code Review | BitMate Author Donations

WordPress plugin BitMate Author Donations scored83%from 54 tests.

About plugin

  • Plugin page: bitmate-author-do...
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.9.4
  • WordPress version: 6.3.1
  • First release: Jun 24, 2013
  • Latest release: Mar 14, 2018
  • Number of updates: 35
  • Update frequency: every 49.3 days
  • Top authors: danielmcclure (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

80+ active /8,102 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.18MB] [CPU: ▼6.53ms] Passed 4 tests

Server-side resources used by BitMate Author Donations
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.66 ▲0.2040.60 ▼1.68
Dashboard /wp-admin3.49 ▲0.1451.93 ▼13.17
Posts /wp-admin/edit.php3.60 ▲0.2452.29 ▲4.46
Add New Post /wp-admin/post-new.php6.09 ▲0.2092.32 ▼12.93
Media Library /wp-admin/upload.php3.41 ▲0.1838.35 ▲1.68
Getting Started /wp-admin/admin.php?page=bm_welcome3.4236.09
Display Settings /wp-admin/admin.php?page=bm_settings3.3735.96

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 27 new files
Database: no new tables, 8 new options
New WordPress options
can_compress_scripts
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
widget_bm_donation_widget
bitmate_author_donations_display_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for BitMate Author Donations
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲7114.26 ▲0.091.46 ▼0.5541.29 ▼0.21
Dashboard /wp-admin2,244 ▲695.59 ▼0.0190.33 ▼19.0359.95 ▲18.82
Posts /wp-admin/edit.php2,153 ▲532.05 ▲0.0736.15 ▲1.7933.68 ▼4.59
Add New Post /wp-admin/post-new.php1,566 ▲4023.12 ▼0.04699.07 ▲30.4754.73 ▼6.06
Media Library /wp-admin/upload.php1,443 ▲434.17 ▲0.04101.59 ▼16.2477.40 ▲28.99
Getting Started /wp-admin/admin.php?page=bm_welcome1,3161.8426.8991.63
Display Settings /wp-admin/admin.php?page=bm_settings1,1881.7628.6240.64

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 8 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_bm_donation_widget
    • db_upgraded
    • bitmate_author_donations_display_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/admin.php?page=bm_welcome
    • > User deprecated in wp-includes/functions.php+5453
    Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

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 to be fixed:
  • Tags: You are using too many tags: 12 tag instead of maximum 10
The official readme.txt is a good inspiration

bitmate-author-donations/bitmate-author-donations.php 85% from 13 tests

Analyzing the main PHP file in "BitMate Author Donations" version 2.0.2
You should first fix the following items:
  • Description: Keep the plugin description shorter than 140 characters (currently 161 characters long)
  • Domain Path: The domain path folder was not found ("/languages")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin4,537 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP98406273,812
CSS36419592
SVG100120
JavaScript10113

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity22.88
▷ Minimum class complexity1.00
▷ Maximum class complexity69.00
Average method complexity3.70
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes17
▷ Abstract classes00.00%
▷ Concrete classes17100.00%
▷ Final classes00.00%
Methods138
▷ Static methods6144.20%
▷ Public methods13698.55%
▷ Protected methods00.00%
▷ Private methods21.45%
Functions24
▷ Named functions24100.00%
▷ Anonymous functions00.00%
Constants37
▷ Global constants37100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
images/donate.png8.30KB4.12KB▼ 50.39%
images/bitcoin.png3.46KB0.93KB▼ 73.02%