83% mice-operations

Code Review | MICE Operations Widget

WordPress plugin MICE Operations Widget scored83%from 54 tests.

About plugin

  • Plugin page: mice-operations
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-6.1.1
  • WordPress version: 6.3.1
  • First release: Sep 10, 2020
  • Latest release: Dec 19, 2022
  • Number of updates: 3
  • Update frequency: every 276.7 days
  • Top authors: miceoperations (100%)

Code review

54 tests

User reviews

1 review

Install metrics

80+ active /979 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.19ms] Passed 4 tests

Analyzing server-side resources used by MICE Operations Widget
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0141.21 ▼0.08
Dashboard /wp-admin3.33 ▲0.0350.62 ▼0.54
Posts /wp-admin/edit.php3.44 ▲0.0950.52 ▼8.94
Add New Post /wp-admin/post-new.php5.93 ▲0.0594.88 ▼4.40
Media Library /wp-admin/upload.php3.25 ▲0.0237.01 ▼2.88
MICE Operations /wp-admin/options-general.php?page=miceoperations3.2234.03

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

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

Browser metrics Passed 4 tests

MICE Operations Widget: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,967 ▲22116.81 ▲2.4367.28 ▲65.4538.88 ▼5.80
Dashboard /wp-admin2,229 ▲415.08 ▲0.18113.55 ▲1.0743.04 ▲0.16
Posts /wp-admin/edit.php2,117 ▲282.31 ▲0.3340.08 ▼3.9934.27 ▼4.22
Add New Post /wp-admin/post-new.php6,232 ▲4,71826.25 ▲2.81878.15 ▲215.8439.40 ▼16.30
Media Library /wp-admin/upload.php1,414 ▲264.41 ▲0.12100.73 ▼23.1643.94 ▼5.07
MICE Operations /wp-admin/options-general.php?page=miceoperations9942.5444.0431.66

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • 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 no errors were found, 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 items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/mice-operations/mice-operations.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
  • Contributors: Plugin contributors field is missing
You can take inspiration from this readme.txt

mice-operations/mice-operations.php 85% from 13 tests

The main PHP script in "MICE Operations Widget" version 1.0.1 is automatically included on every request by WordPress
You should first fix the following items:
  • Domain Path: The domain path points to a folder that does not exist ("/languages")
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected163 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23023160
JavaScript1003

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity22.00
▷ Minimum class complexity22.00
▷ Maximum class complexity22.00
Average method complexity2.17
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods18
▷ Static methods00.00%
▷ Public methods18100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin