83% incasso-kosten-berekenen

Code Review | Incasso kosten berekenen

WordPress plugin Incasso kosten berekenen scored83%from 54 tests.

About plugin

  • Plugin page: incasso-kosten-be...
  • Plugin version: 1.0.6
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-5.4
  • WordPress version: 6.3.1
  • First release: Apr 4, 2020
  • Latest release: Apr 16, 2020
  • Number of updates: 13
  • Update frequency: every 1.8 days
  • Top authors: tammohaan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /493 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.00MB] [CPU: ▼6.67ms] Passed 4 tests

This is a short check of server-side resources used by Incasso kosten berekenen
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0142.50 ▼0.38
Dashboard /wp-admin3.35 ▼0.0349.89 ▼12.80
Posts /wp-admin/edit.php3.40 ▲0.0152.39 ▲1.58
Add New Post /wp-admin/post-new.php5.93 ▲0.0185.58 ▼15.07
Media Library /wp-admin/upload.php3.28 ▲0.0140.80 ▲4.45

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Incasso kosten berekenen
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.25 ▼0.102.52 ▲0.8941.97 ▲0.04
Dashboard /wp-admin2,195 ▲215.50 ▼0.1084.84 ▼6.2943.98 ▼0.62
Posts /wp-admin/edit.php2,097 ▼31.98 ▼0.0136.66 ▼3.2434.10 ▼0.65
Add New Post /wp-admin/post-new.php1,526 ▼1122.56 ▲4.39655.29 ▼14.4256.96 ▼17.80
Media Library /wp-admin/upload.php1,400 ▼04.14 ▼0.0193.47 ▼12.9442.20 ▼5.81

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/incasso-kosten-berekenen/components/enqueuing.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed: Please take inspiration from this readme.txt

incasso-kosten-berekenen/incassokosten-plugin.php 92% from 13 tests

"Incasso kosten berekenen" version 1.0.6's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("incasso-kosten-berekenen.php" instead of "incassokosten-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin237 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript2420198
PHP3112439

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.12
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

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
img/no-image.png6.91KB2.60KB▼ 62.33%