89% will-work-for-ko-fi

Code Review | Will Work for Ko-fi

WordPress plugin Will Work for Ko-fi scored89%from 54 tests.

About plugin

  • Plugin page: will-work-for-ko-fi
  • Plugin version: 2.1.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.2-5.8.1
  • WordPress version: 6.3.1
  • First release: Apr 27, 2020
  • Latest release: Sep 27, 2021
  • Number of updates: 21
  • Update frequency: every 24.7 days
  • Top authors: mlchaves (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /882 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▼9.02ms] Passed 4 tests

This is a short check of server-side resources used by Will Work for Ko-fi
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0341.11 ▼7.83
Dashboard /wp-admin3.32 ▲0.0249.34 ▼2.53
Posts /wp-admin/edit.php3.37 ▲0.0247.05 ▼4.08
Add New Post /wp-admin/post-new.php5.92 ▲0.0487.54 ▼20.56
Media Library /wp-admin/upload.php3.24 ▲0.0236.45 ▼3.61

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Will Work for Ko-fi
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,872 ▲11113.38 ▼0.883.22 ▲1.4548.99 ▲5.79
Dashboard /wp-admin2,236 ▲334.92 ▲0.04105.44 ▼4.1635.25 ▼8.96
Posts /wp-admin/edit.php2,118 ▲122.13 ▲0.1235.78 ▼3.9031.29 ▼8.78
Add New Post /wp-admin/post-new.php6,203 ▲4,65819.08 ▼4.01825.83 ▲209.9650.27 ▼10.63
Media Library /wp-admin/upload.php1,415 ▲154.26 ▲0.06110.64 ▼0.1846.98 ▼2.78

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
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not 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
Congratulations! This plugin passed the SRP test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes: The official readme.txt is a good inspiration

will-work-for-ko-fi/plugin.php 92% from 13 tests

The main PHP file in "Will Work for Ko-fi" ver. 2.1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("will-work-for-ko-fi.php" instead of "plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin368 lines of code in 13 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript51936200
PHP2157469
Sass310352
SVG11045
CSS2002

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.20
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%
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

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin