90% gaali

Code Review | Gaali

WordPress plugin Gaali scored90%from 54 tests.

About plugin

  • Plugin page: gaali
  • Plugin version: 1.0
  • PHP compatiblity: 8.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.2.2-6.3
  • WordPress version: 6.3.1
  • First release: Sep 21, 2023
  • Latest release: Sep 22, 2023
  • Number of updates: 8
  • Update frequency: every 0.4 days
  • Top authors: anjanesh (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /35 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.30ms] Passed 4 tests

Server-side resources used by Gaali
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.74 ▼5.75
Dashboard /wp-admin3.35 ▲0.0551.53 ▼7.31
Posts /wp-admin/edit.php3.40 ▲0.0555.27 ▼3.17
Add New Post /wp-admin/post-new.php5.93 ▲0.05115.18 ▲9.69
Media Library /wp-admin/upload.php3.28 ▲0.0540.89 ▲3.03
Gaali /wp-admin/options-general.php?page=toxicity_plugin_options3.2433.77

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

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

Browser metrics Passed 4 tests

Gaali: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.37 ▲0.021.70 ▼0.6043.17 ▼1.95
Dashboard /wp-admin2,204 ▲275.63 ▼0.0491.97 ▼10.3245.52 ▼8.68
Posts /wp-admin/edit.php2,106 ▲62.01 ▼0.1039.16 ▲3.0437.62 ▼0.59
Add New Post /wp-admin/post-new.php1,532 ▲623.24 ▼0.49683.81 ▼1.4751.81 ▼8.09
Media Library /wp-admin/upload.php1,403 ▲64.25 ▲0.03113.67 ▲12.0345.10 ▲0.45
Gaali /wp-admin/options-general.php?page=toxicity_plugin_options8112.0322.8826.38

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

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

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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

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
2 plugin tags: toxicity, moderation

gaali/gaali.php Passed 13 tests

This is the main PHP file of "Gaali" version 1.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
28 characters long description:
Toxicity detect for Comments

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected188 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP22521175
CSS10013

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.08
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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
There were not PNG files found in your plugin