83% goftino

Code Review | Goftino

WordPress plugin Goftino scored83%from 54 tests.

About plugin

  • Plugin page: goftino
  • Plugin version: 1.6
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.6-6.3
  • WordPress version: 6.3.1
  • First release: Aug 6, 2018
  • Latest release: Aug 29, 2023
  • Number of updates: 21
  • Update frequency: every 88.1 days
  • Top authors: goftino (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10,000+ active /40,927 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.89ms] Passed 4 tests

This is a short check of server-side resources used by Goftino
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0335.11 ▼6.23
Dashboard /wp-admin3.34 ▲0.0449.27 ▼2.63
Posts /wp-admin/edit.php3.40 ▲0.0451.99 ▼2.13
Add New Post /wp-admin/post-new.php5.92 ▲0.0497.29 ▲8.50
Media Library /wp-admin/upload.php3.27 ▲0.0439.02 ▲3.42

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

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

An overview of browser requirements for Goftino
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲1814.72 ▲0.171.61 ▼0.5840.38 ▼2.92
Dashboard /wp-admin2,198 ▲215.55 ▼0.1087.98 ▼27.8371.21 ▲26.80
Posts /wp-admin/edit.php2,115 ▲151.98 ▼0.0940.35 ▲2.1240.78 ▲7.25
Add New Post /wp-admin/post-new.php1,555 ▲2723.10 ▼0.44590.69 ▼58.04154.09 ▲98.18
Media Library /wp-admin/upload.php1,409 ▲94.22 ▲0.01123.17 ▲21.2381.46 ▲35.62

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

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

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

SRP 50% from 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
Almost there! Just fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/goftino/goftino.php

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 86% from 29 tests

readme.txt 94% from 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
These attributes need to be fixed:
  • Screenshots: Screenshot #1 (Preview of Goftino setting page) image missing
You can look at the official readme.txt

goftino/goftino.php 77% from 13 tests

This is the main PHP file of "Goftino" version 1.6, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
  • Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("/")
  • Domain Path: Please prefix the domain path with a forward slash character ("//")
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 160 characters long)

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 plugin215 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP22213215

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.38
Average class complexity9.00
▷ Minimum class complexity9.00
▷ Maximum class complexity9.00
Average method complexity1.89
▷ Minimum method complexity1.00
▷ Maximum method complexity5.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods9
▷ Static methods111.11%
▷ Public methods888.89%
▷ Protected methods00.00%
▷ Private methods111.11%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
3 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png52.78KB17.24KB▼ 67.33%
img/logo-m.png1.19KB0.54KB▼ 54.79%
img/logo.png3.77KB2.16KB▼ 42.58%