84% fatso

Code Review | Fatso

WordPress plugin Fatso scored84%from 54 tests.

About plugin

  • Plugin page: fatso
  • Plugin version: 1.36
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 6.0.0-6.0.2
  • WordPress version: 6.3.1
  • First release: Dec 10, 2020
  • Latest release: Nov 16, 2022
  • Number of updates: 55
  • Update frequency: every 12.8 days
  • Top authors: jonkastonka (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /1,719 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.02MB] [CPU: ▲2.09ms] Passed 4 tests

An overview of server-side resources used by Fatso
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0248.21 ▲8.63
Dashboard /wp-admin3.33 ▲0.0248.71 ▲2.70
Posts /wp-admin/edit.php3.38 ▲0.0248.97 ▼1.07
Add New Post /wp-admin/post-new.php5.91 ▲0.0296.08 ▼0.15
Media Library /wp-admin/upload.php3.25 ▲0.0237.29 ▲6.88
Fatso /wp-admin/options-general.php?page=fatso_settings3.2229.53

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

Fatso: an overview of browser usage
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲9613.29 ▼1.302.07 ▲0.2843.55 ▼0.70
Dashboard /wp-admin2,212 ▲214.85 ▼1.05107.02 ▼0.1539.57 ▼3.16
Posts /wp-admin/edit.php2,095 ▲32.02 ▲0.0039.40 ▼2.6134.79 ▲0.86
Add New Post /wp-admin/post-new.php1,520 ▼1317.72 ▼5.38650.31 ▼20.0652.48 ▼3.82
Media Library /wp-admin/upload.php1,394 ▲64.20 ▲0.0295.90 ▼3.5342.31 ▼1.68
Fatso /wp-admin/options-general.php?page=fatso_settings8322.0323.6424.36

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • theysaidso_admin_options

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
  • 3× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/fatso/fatso.php
    • > /wp-content/plugins/fatso/inc/settings-fatso-update-options.php
    • > /wp-content/plugins/fatso/inc/settings-fatso.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: wider, block editor, wide, gutenberg

fatso/fatso.php 92% from 13 tests

The primary PHP file in "Fatso" version 1.36 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

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
No dangerous file extensions were detected143 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP41414131
Sass10011
CSS1011

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG files were detected