84% basic-funding-tracker

Code Review | Basic Funding Tracker

WordPress plugin Basic Funding Tracker scored84%from 54 tests.

About plugin

  • Plugin page: basic-funding-tra...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-6.3
  • WordPress version: 6.3.1
  • First release: Dec 17, 2014
  • Latest release: Sep 18, 2023
  • Number of updates: 20
  • Update frequency: every 159.9 days
  • Top authors: celloexpressions (100%)

Code review

54 tests

User reviews

1 review

Install metrics

50+ active /2,997 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.01MB] [CPU: ▼3.41ms] Passed 4 tests

Analyzing server-side resources used by Basic Funding Tracker
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.88 ▲1.94
Dashboard /wp-admin3.31 ▲0.0150.22 ▼1.85
Posts /wp-admin/edit.php3.37 ▲0.0149.55 ▼1.17
Add New Post /wp-admin/post-new.php5.90 ▲0.0189.60 ▼3.69
Media Library /wp-admin/upload.php3.24 ▲0.0133.00 ▼6.93

Server storage [IO: ▲0.01MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 7 new options
New WordPress options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
widget_funding_goal_widget

Browser metrics Passed 4 tests

An overview of browser requirements for Basic Funding Tracker
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.27 ▲0.051.84 ▲0.0644.41 ▲2.85
Dashboard /wp-admin2,198 ▲215.65 ▼0.0290.28 ▼29.3641.48 ▼13.90
Posts /wp-admin/edit.php2,097 ▼62.01 ▲0.0233.72 ▼8.6834.66 ▼6.86
Add New Post /wp-admin/post-new.php1,526 ▼523.56 ▲0.52653.82 ▼12.6554.81 ▼1.50
Media Library /wp-admin/upload.php1,397 ▼64.27 ▲0.17105.92 ▼3.4043.26 ▼1.31

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_funding_goal_widget

Smoke tests 75% from 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 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 fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/basic-funding-tracker/basic-funding-tracker.php:32

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 97% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need to be fixed: You can take inspiration from this readme.txt

basic-funding-tracker/basic-funding-tracker.php Passed 13 tests

The entry point to "Basic Funding Tracker" version 1.2 is a PHP file that has certain tags in its header comment area
69 characters long description:
Simple widget that displays the current status of a fundraising goal.

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
No dangerous file extensions were detected116 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP11737116

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.11
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin