84% belingocredit

Code Review | belingoCredit

WordPress plugin belingoCredit scored 84% from 54 tests.

About plugin

  • Plugin page: belingocredit
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.4.2-6.2
  • WordPress version: 6.3.1
  • First release: Feb 25, 2022
  • Latest release: Apr 11, 2023
  • Number of updates: 25
  • Update frequency: every 16.4 days
  • Top authors: belingo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,579 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼3.61ms] Passed 4 tests

This is a short check of server-side resources used by belingoCredit
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0238.61 ▼2.69
Dashboard /wp-admin3.32 ▲0.0245.43 ▼3.27
Posts /wp-admin/edit.php3.37 ▲0.0144.85 ▼0.82
Add New Post /wp-admin/post-new.php5.90 ▲0.0181.90 ▼7.67
Media Library /wp-admin/upload.php3.24 ▲0.0138.87 ▲6.76

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

belingoCredit: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,802 ▲6713.54 ▼1.081.62 ▼0.3039.35 ▼9.65
Dashboard /wp-admin2,206 ▲215.86 ▲0.97107.54 ▲3.2439.10 ▼1.08
Posts /wp-admin/edit.php2,089 ▼02.02 ▲0.0139.07 ▼2.1735.30 ▼4.46
Add New Post /wp-admin/post-new.php1,514 ▼1917.61 ▼5.54672.83 ▲79.4654.19 ▼3.06
Media Library /wp-admin/upload.php1,391 ▲34.15 ▼0.0593.66 ▼5.1041.09 ▼0.92

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options

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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/belingocredit/belingocredit.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/belingocredit/templates/belingoCreditTemplate.php:7

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
8 plugin tags: debt, mortgage calculator, credit, loan calculator, calculator...

belingocredit/belingocredit.php Passed 13 tests

"belingoCredit" version 1.0.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
88 characters long description:
The plugin adds the [belingoCredit] shortcode, which can be used on any page of the site

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
Success! There were no dangerous files found in this plugin543 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP33610246
CSS1380238
PO File1212259

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity10.00
▷ Minimum class complexity10.00
▷ Maximum class complexity10.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods787.50%
▷ Protected methods00.00%
▷ Private methods112.50%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin