73% don8

Code Review | Don8

WordPress plugin Don8 scored 73% from 54 tests.

About plugin

  • Plugin page: don8
  • Plugin version: 0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8.0-4.0
  • WordPress version: 5.9.2
  • First release: Oct 8, 2014
  • Latest release: Oct 24, 2014
  • Number of updates: 7
  • Update frequency: every 3.1 days
  • Top authors: BrashRebel (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 923 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully

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

A check of server-side resources used by Don8
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.65 ▲0.1355.34 ▲0.16
Dashboard /wp-admin3.48 ▲0.0733.29 ▼3.04
Posts /wp-admin/edit.php3.71 ▲0.0636.63 ▼2.13
Add New Post /wp-admin/post-new.php6.95 ▼0.03101.19 ▼1,188.47
Media Library /wp-admin/upload.php3.36 ▲0.0625.01 ▲1.09
Don8 /wp-admin/options-general.php?page=don83.3322.93

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
don8_currency
widget_don8_widget
don8_value
don8_cause
don8_paypal_email
don8_button

Browser metrics Passed 4 tests

A check of browser resources used by Don8
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,802 ▲4816.21 ▲0.256.00 ▲0.252.67 ▼0.03
Dashboard /wp-admin2,899 ▲416.22 ▲0.07119.36 ▼13.73157.45 ▼0.20
Posts /wp-admin/edit.php2,698 ▲133.24 ▼0.0062.99 ▼1.66144.81 ▲2.13
Add New Post /wp-admin/post-new.php1,673 ▲1218.58 ▲2.60389.25 ▼23.41159.49 ▲5.34
Media Library /wp-admin/upload.php1,702 ▲45.43 ▼0.12134.34 ▼11.68189.56 ▲3.69
Don8 /wp-admin/options-general.php?page=don81,3694.4868.72129.52

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
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_don8_widget
    • don8_paypal_email
    • don8_cause
    • don8_currency
    • don8_button
    • don8_value

Smoke tests 25% 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
    • > GET request to /wp-admin/options-general.php?page=don8
    • > User deprecated in wp-includes/functions.php+5326
    screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=don8
    • > User deprecated in wp-includes/functions.php+5326
    get_screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=don8
    • > Notice in wp-content/plugins/don8/functions/uploader.php+9
    Trying to access array offset on value of type bool

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
  • 4× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/don8/admin/admin.php:11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/don8/functions/form.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/don8/admin/widget.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/don8/don8.php:18

User-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There are user-side issues you should fix
    • > GET request to /wp-admin/options-general.php?page=don8
    • > Javascript (severe) in unknown
    /wp-content/plugins/don8/js/script.js?ver=5.9.2 1:4 Uncaught ReferenceError: tinymce is not defined

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: widget, paypal, donate, donations, fundraising

don8/don8.php Passed 13 tests

The entry point to "Don8" version 0.4 is a PHP file that has certain tags in its header comment area
51 characters long description:
Making donations on your WordPress website simpler.

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
No dangerous file extensions were detected323 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP651104274
JavaScript19146
CSS1003

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.26
Average class complexity10.33
▷ Minimum class complexity3.00
▷ Maximum class complexity25.00
Average method complexity3.80
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions7
▷ Named functions7100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
PNG images were not found in this plugin