89% wc-tbc-installments

Code Review | TBC Installments / TBC განვადება

WordPress plugin TBC Installments / TBC განვადება scored89%from 54 tests.

About plugin

  • Plugin page: wc-tbc-installments
  • Plugin version: 1.0.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4.2
  • WordPress version: 6.3.1
  • First release: Jul 20, 2020
  • Latest release: Jul 22, 2020
  • Number of updates: 6
  • Update frequency: every 0.3 days
  • Top authors: inkdotge (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /587 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.01MB] [CPU: ▼8.20ms] Passed 4 tests

A check of server-side resources used by TBC Installments / TBC განვადება
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0241.66 ▼1.55
Dashboard /wp-admin3.32 ▼0.0249.04 ▼19.07
Posts /wp-admin/edit.php3.37 ▲0.0247.19 ▲0.68
Add New Post /wp-admin/post-new.php5.90 ▲0.0287.28 ▼12.10
Media Library /wp-admin/upload.php3.25 ▲0.0235.43 ▼0.06

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_theysaidso_widget
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

TBC Installments / TBC განვადება: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.23 ▼1.154.62 ▲2.6939.64 ▼5.11
Dashboard /wp-admin2,221 ▲155.90 ▲0.01108.68 ▲0.4738.78 ▼8.65
Posts /wp-admin/edit.php2,100 ▼02.01 ▼0.0140.37 ▲3.2535.78 ▼3.16
Add New Post /wp-admin/post-new.php1,526 ▼517.42 ▼5.57686.95 ▼12.3069.72 ▲17.86
Media Library /wp-admin/upload.php1,400 ▲34.18 ▼0.0298.36 ▼5.4948.41 ▲1.87

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • 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
The smoke test was a success, however most plugin functionality was not tested

SRP Passed 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
The SRP test was a success

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed: You can take inspiration from this readme.txt

wc-tbc-installments/main.php 77% from 13 tests

This is the main PHP file of "TBC Installments / TBC განვადება" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Description: Please keep the plugin description shorter than 140 characters (currently 256 characters long)
  • Main file name: Name the main plugin file the same as the plugin slug ("wc-tbc-installments.php" instead of "main.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected104 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP24519104

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity2.00
▷ Minimum class complexity2.00
▷ Maximum class complexity2.00
Average method complexity1.33
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods3
▷ Static methods00.00%
▷ Public methods3100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
tbc_logo.png3.00KB3.01KB0.00%