89% fundraising-thermometer-by-couponbirds

Code Review | Fundraising Thermometer by CouponBirds

WordPress plugin Fundraising Thermometer by CouponBirds scored89%from 54 tests.

About plugin

  • Plugin page: fundraising-therm...
  • Plugin version: 1.7
  • PHP compatiblity: 5.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-5.6
  • WordPress version: 6.3.1
  • First release: Jul 14, 2020
  • Latest release: Mar 3, 2021
  • Number of updates: 17
  • Update frequency: every 13.7 days
  • Top authors: couponbirds (58.82%)bestcharity (47.06%)

Code review

54 tests

User reviews

7 reviews

Install metrics

600+ active /3,668 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.13MB] [CPU: ▼0.81ms] Passed 4 tests

A check of server-side resources used by Fundraising Thermometer by CouponBirds
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.1245.09 ▲1.11
Dashboard /wp-admin3.44 ▲0.1454.77 ▼1.17
Posts /wp-admin/edit.php3.56 ▲0.2056.00 ▲3.48
Add New Post /wp-admin/post-new.php6.02 ▲0.1488.32 ▼4.49
Media Library /wp-admin/upload.php3.37 ▲0.1438.16 ▲1.32
Thermometer /wp-admin/options-general.php?page=birdsmeter-setting3.3433.23

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

Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-comments
db_upgraded
birdsmeter_options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for Fundraising Thermometer by CouponBirds
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.24 ▼1.351.69 ▼0.3044.72 ▲1.56
Dashboard /wp-admin2,213 ▲255.84 ▲0.7498.07 ▼52.5341.56 ▼16.54
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0340.80 ▲2.0836.68 ▲0.99
Add New Post /wp-admin/post-new.php1,517 ▼617.36 ▼5.84655.03 ▼48.0753.38 ▼15.82
Media Library /wp-admin/upload.php1,392 ▲44.24 ▲0.0696.35 ▼8.9741.53 ▼4.62
Thermometer /wp-admin/options-general.php?page=birdsmeter-setting9992.3234.5240.16

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
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 30 tag instead of maximum 10
Please take inspiration from this readme.txt

fundraising-thermometer-by-couponbirds/fundraising_thermometer_by_couponbirds.php 92% from 13 tests

Analyzing the main PHP file in "Fundraising Thermometer by CouponBirds" version 1.7
Please make the necessary changes and fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("fundraising-thermometer-by-couponbirds.php" instead of "fundraising_thermometer_by_couponbirds.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin584 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP47349574
JavaScript10010

PHP code Passed 2 tests

A brief analysis 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.23
Average class complexity21.67
▷ Minimum class complexity6.00
▷ Maximum class complexity39.00
Average method complexity3.14
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods29
▷ Static methods00.00%
▷ Public methods29100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.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
No PNG images were found in this plugin