64% minor-improvements

Code Review | Minor Improvements

WordPress plugin Minor Improvements scored64%from 54 tests.

About plugin

  • Plugin page: minor-improvements
  • Plugin version: 1.8
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-5.9
  • WordPress version: 6.3.1
  • First release: Nov 30, 2016
  • Latest release: Jan 30, 2022
  • Number of updates: 53
  • Update frequency: every 35.6 days
  • Top authors: Minor (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,828 total downloads

Benchmarks

Plugin footprint 48% 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.02MB] [CPU: ▼5.20ms] Passed 4 tests

An overview of server-side resources used by Minor Improvements
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0438.27 ▼0.64
Dashboard /wp-admin3.34 ▼0.0148.73 ▼13.75
Posts /wp-admin/edit.php3.39 ▲0.0344.66 ▲2.31
Add New Post /wp-admin/post-new.php5.92 ▲0.0381.10 ▼8.73
Media Library /wp-admin/upload.php3.26 ▲0.0335.93 ▲2.88
Minor Improvements /wp-admin/options-general.php?page=mi_options3.2331.43

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
widget_recent-comments
widget_recent-posts
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Minor Improvements
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,839 ▲7814.21 ▼0.292.01 ▲0.3745.14 ▲4.46
Dashboard /wp-admin2,206 ▲285.63 ▲0.0191.66 ▼4.6742.52 ▲3.01
Posts /wp-admin/edit.php2,111 ▲111.99 ▲0.0233.60 ▼1.9133.27 ▼3.25
Add New Post /wp-admin/post-new.php1,545 ▲1918.12 ▼5.53641.75 ▼26.6867.73 ▲10.71
Media Library /wp-admin/upload.php1,411 ▲84.14 ▼0.0394.35 ▼12.7140.83 ▼6.87
Minor Improvements /wp-admin/options-general.php?page=mi_options8532.1623.0927.20

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > Error in wp-content/plugins/minor-improvements/entity.php+13
    Cannot declare class MinorImprovements\Entity, because the name is already in use
  • Uninstaller has failed for this plugin, leaving 6 files (0.03MB) in the plugin directory
    • (new file) mi.js
    • (new file) mi.css
    • (new file) uninstall.php
    • (new file) readme.txt
    • (new file) minor-improvements.php
    • (new file) entity.php
  • This plugin does not fully uninstall, leaving 7 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts
    • recovery_mode_email_last_sent
    • theysaidso_admin_options
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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/minor-improvements/uninstall.php

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)
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
6 plugin tags: youtube, google, recaptcha, protect, xmlrpc...

minor-improvements/minor-improvements.php Passed 13 tests

Analyzing the main PHP file in "Minor Improvements" version 1.8
94 characters long description:
Package of several minor improvements. Why to install several plugins? You need this one only.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected465 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP3128175433
CSS13020
JavaScript11012

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity17.00
▷ Minimum class complexity1.00
▷ Maximum class complexity47.00
Average method complexity2.20
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods40
▷ Static methods00.00%
▷ Public methods3382.50%
▷ Protected methods00.00%
▷ Private methods717.50%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants19
▷ Global constants00.00%
▷ Class constants19100.00%
▷ Public constants19100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin