89% scrounger-lite

Code Review | Scrounger Lite

WordPress plugin Scrounger Lite scored89%from 54 tests.

About plugin

  • Plugin page: scrounger-lite
  • Plugin version: 0.9.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-4.8
  • WordPress version: 6.3.1
  • First release: Mar 2, 2017
  • Latest release: Mar 20, 2017
  • Number of updates: 14
  • Update frequency: every 10.6 days
  • Top authors: dampi (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,347 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

An overview of server-side resources used by Scrounger Lite
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0637.89 ▼7.02
Dashboard /wp-admin3.12 ▼0.1928.41 ▼25.36
Posts /wp-admin/edit.php3.25 ▼0.1035.81 ▼11.49
Add New Post /wp-admin/post-new.php5.50 ▼0.3972.92 ▼19.53
Media Library /wp-admin/upload.php3.20 ▼0.0331.13 ▼5.89
Настройки показа /wp-admin/admin.php?page=scrounger-view3.3132.66
Попрошайка /wp-admin/admin.php?page=scrounger3.3229.49

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 22 new files
Database: no new tables, 30 new options
New WordPress options
scrounger_shortcode
scrounger_view
scrounger_button_text
scrounger_account
scrounger_payments
scrounger_view_type
scrounger_comment
scrounger_payment_type_choice
scrounger_receiving_notification
scrounger_email
...

Browser metrics Passed 4 tests

A check of browser resources used by Scrounger Lite
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲5514.23 ▼0.111.67 ▼0.2345.77 ▲3.02
Dashboard /wp-admin2,222 ▲485.70 ▲0.0290.26 ▼10.5241.45 ▼1.64
Posts /wp-admin/edit.php2,127 ▲272.00 ▲0.0041.02 ▲3.8240.73 ▲3.78
Add New Post /wp-admin/post-new.php1,548 ▲2223.63 ▲0.63673.91 ▼23.5755.99 ▲1.55
Media Library /wp-admin/upload.php1,430 ▲304.23 ▼0.0097.22 ▼18.0643.55 ▼13.60
Настройки показа /wp-admin/admin.php?page=scrounger-view9602.1428.0636.31
Попрошайка /wp-admin/admin.php?page=scrounger1,1102.1227.6352.92

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 30 options
    • scrounger_secret
    • scrounger_on
    • scrounger_view
    • scrounger_shortcode
    • scrounger_view_type
    • scrounger_payment_type_choice
    • db_upgraded
    • widget_recent-comments
    • scrounger_success_url
    • scrounger_payments_count
    • ...

Smoke tests Passed 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 Passed 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
Looking good! No server-side errors or output on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 93% 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
7 plugin tags: money, donate, scrounger, yandex, payments...

scrounger-lite/scrounger.php 85% from 13 tests

The principal PHP file in "Scrounger Lite" v. 0.9.3 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 161 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("scrounger-lite.php" instead of "scrounger.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin851 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP189095751
JavaScript13068
CSS16032

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
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%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants8
▷ Global constants8100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected