90% edel-budget-book

Code Review | Edel Budget Book

WordPress plugin Edel Budget Book scored90%from 54 tests.

About plugin

  • Plugin page: edel-budget-book
  • Plugin version: 1.0
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2.4-5.8.1
  • WordPress version: 6.3.1
  • First release: Oct 23, 2021
  • Latest release: Oct 23, 2021
  • Number of updates: 4
  • Update frequency: every 0.5 days
  • Top authors: yabea (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /412 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.02MB] [CPU: ▼7.70ms] Passed 4 tests

This is a short check of server-side resources used by Edel Budget Book
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0335.34 ▼2.59
Dashboard /wp-admin3.33 ▼0.0143.53 ▼16.01
Posts /wp-admin/edit.php3.38 ▲0.0344.76 ▼5.75
Add New Post /wp-admin/post-new.php5.93 ▲0.0589.63 ▼6.45
Media Library /wp-admin/upload.php3.26 ▲0.0335.66 ▲2.27
Edel Budget Book /wp-admin/options-general.php?page=edel-budget-book3.2229.16

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 16 new files
Database: 1 new table, 7 new options
New tables
wp_ebb_main
New WordPress options
ebb-type-lists
widget_recent-comments
db_upgraded
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options

Browser metrics Passed 4 tests

A check of browser resources used by Edel Budget Book
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,809 ▲6313.24 ▼1.575.79 ▲3.8943.63 ▼0.38
Dashboard /wp-admin2,206 ▲185.84 ▼0.0398.37 ▼21.0140.47 ▼3.80
Posts /wp-admin/edit.php2,092 ▲32.00 ▲0.0037.85 ▼0.3236.71 ▲2.32
Add New Post /wp-admin/post-new.php1,542 ▲2818.47 ▲1.01642.89 ▼41.1954.55 ▼1.33
Media Library /wp-admin/upload.php1,394 ▲64.22 ▲0.0592.87 ▼12.5944.01 ▼2.51
Edel Budget Book /wp-admin/options-general.php?page=edel-budget-book8531.8627.77109.54

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: login, finance, budget, gamble

edel-budget-book/edel-budget-book.php Passed 13 tests

Analyzing the main PHP file in "Edel Budget Book" version 1.0
93 characters long description:
カレンダーに日々の収支を入力して、収支表やグラフを作成します。

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin17,910 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript52,98553616,982
PHP59325555
CSS24125373

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity11.50
▷ Minimum class complexity1.00
▷ Maximum class complexity24.00
Average method complexity3.21
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods19
▷ Static methods00.00%
▷ Public methods19100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.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 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
js/hs.png2.62KB7.54KB0.00%