Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.21MB] [CPU: ▼2.71ms] Passed 4 tests
Server-side resources used by Ko-fi Button
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.21 | 37.07 ▼0.41 |
Dashboard /wp-admin | 3.51 ▲0.21 | 52.18 ▲3.38 |
Posts /wp-admin/edit.php | 3.62 ▲0.27 | 50.07 ▲0.79 |
Add New Post /wp-admin/post-new.php | 6.10 ▲0.21 | 87.58 ▼12.41 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 34.19 ▲1.19 |
Ko-fi Settings /wp-admin/options-general.php?page=ko_fi_options | 3.40 | 32.02 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
can_compress_scripts |
widget_ko_fi_panel_widget |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
widget_ko_fi_widget |
ko_fi_options |
Browser metrics Passed 4 tests
An overview of browser requirements for Ko-fi Button
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲66 | 13.45 ▼0.98 | 1.60 ▼0.21 | 40.85 ▼0.40 |
Dashboard /wp-admin | 2,229 ▲41 | 5.11 ▼0.85 | 113.46 ▼2.38 | 42.73 ▼3.12 |
Posts /wp-admin/edit.php | 2,114 ▲22 | 2.31 ▲0.25 | 43.17 ▲5.49 | 34.79 ▲2.94 |
Add New Post /wp-admin/post-new.php | 6,489 ▲4,969 | 20.39 ▼2.64 | 935.69 ▲335.70 | 41.69 ▼6.84 |
Media Library /wp-admin/upload.php | 1,414 ▲26 | 4.56 ▲0.34 | 105.03 ▲6.25 | 44.62 ▲2.16 |
Ko-fi Settings /wp-admin/options-general.php?page=ko_fi_options | 1,202 | 2.84 | 52.32 | 30.32 |
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
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 9 options in the database
- widget_ko_fi_panel_widget
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- ko_fi_options
- theysaidso_admin_options
- widget_ko_fi_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ko-fi-button/ko_fi_widget.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
10 plugin tags: monetization, paypal, members, membership, donate plugin...
ko-fi-button/Ko_fi.php 92% from 13 tests
The primary PHP file in "Ko-fi Button" version 1.3.4 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ko-fi-button.php" instead of "Ko_fi.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
There were no executable files found in this plugin1,266 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 212 | 367 | 1,240 |
JavaScript | 2 | 5 | 9 | 26 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 42.00 |
Average method complexity | 2.44 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 70 | |
▷ Static methods | 20 | 28.57% |
▷ Public methods | 64 | 91.43% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 8.57% |
Functions | 3 | |
▷ Named functions | 1 | 33.33% |
▷ Anonymous functions | 2 | 66.67% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 images were found in this plugin