83% mini-termin

Code Review | FW Mini-Termin

WordPress plugin FW Mini-Termin scored 83% from 54 tests.

About plugin

  • Plugin page: mini-termin
  • Plugin version: 2.0.4
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.4.1
  • WordPress version: 6.3.1
  • First release: Nov 27, 2013
  • Latest release: May 5, 2020
  • Number of updates: 8
  • Update frequency: every 294.2 days
  • Top authors: Tikolan (100%)

Code review

54 tests

User reviews

1 review

Install metrics

100+ active / 3,717 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.65MB] [CPU: ▼16.47ms] Passed 4 tests

An overview of server-side resources used by FW Mini-Termin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0235.71 ▼6.09
Dashboard /wp-admin3.37 ▲0.0645.36 ▼4.22
Posts /wp-admin/edit.php3.42 ▲0.0645.54 ▲1.60
Add New Post /wp-admin/post-new.php3.15 ▼2.7436.39 ▼54.33
Media Library /wp-admin/upload.php3.29 ▲0.0633.63 ▼1.24

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts

Browser metrics Passed 4 tests

Checking browser requirements for FW Mini-Termin
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.60 ▼0.771.80 ▼0.1943.78 ▲3.21
Dashboard /wp-admin2,219 ▲315.83 ▲0.9696.75 ▼16.8440.58 ▼9.61
Posts /wp-admin/edit.php2,105 ▲162.04 ▼0.0238.68 ▲4.6234.34 ▼2.15
Add New Post /wp-admin/post-new.php6,530 ▲5,01023.32 ▲0.09866.86 ▲213.1662.82 ▲10.08
Media Library /wp-admin/upload.php1,404 ▲164.31 ▲0.0395.83 ▼24.9342.61 ▼6.08

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
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments
    • can_compress_scripts
    • 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
Even though everything seems fine, this is not an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/mini-termin/minitermin.php:23

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)
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === mini-termin === )
The official readme.txt is a good inspiration

mini-termin/minitermin.php 85% from 13 tests

The entry point to "FW Mini-Termin" version 2.0.4 is a PHP file that has certain tags in its header comment area
It is important to fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 170 characters long)
  • Main file name: The principal plugin file should be the same as the plugin slug ("mini-termin.php" instead of "minitermin.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
Success! There were no dangerous files found in this plugin283 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP19530283

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.31
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.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
No PNG images were found in this plugin