78% mini-loops

Code Review | Mini Loops

WordPress plugin Mini Loops scored78%from 54 tests.

About plugin

  • Plugin page: mini-loops
  • Plugin version: 1.4.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-5.7
  • WordPress version: 6.3.1
  • First release: May 26, 2011
  • Latest release: Jun 17, 2021
  • Number of updates: 101
  • Update frequency: every 36.4 days
  • Top authors: trepmal (100%)

Code review

54 tests

User reviews

15 reviews

Install metrics

1,000+ active /36,367 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.17MB] [CPU: ▼3.04ms] Passed 4 tests

Server-side resources used by Mini Loops
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.64 ▲0.1737.26 ▼0.82
Dashboard /wp-admin3.48 ▲0.1844.65 ▼8.57
Posts /wp-admin/edit.php3.59 ▲0.2447.42 ▼0.93
Add New Post /wp-admin/post-new.php6.06 ▲0.1790.40 ▼1.82
Media Library /wp-admin/upload.php3.40 ▲0.1733.16 ▲1.19

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Mini Loops
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲2814.27 ▼0.451.58 ▲0.0338.19 ▼2.65
Dashboard /wp-admin2,198 ▲275.62 ▲0.0693.27 ▲2.8541.66 ▲2.19
Posts /wp-admin/edit.php2,100 ▼02.03 ▲0.0539.51 ▲4.4135.48 ▼1.29
Add New Post /wp-admin/post-new.php1,535 ▲918.31 ▼4.62622.89 ▼34.6067.48 ▲13.95
Media Library /wp-admin/upload.php1,400 ▲64.18 ▲0.00104.26 ▲5.4544.15 ▲0.68

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 8 options in the database
    • widget_miniminiloops
    • theysaidso_admin_options
    • widget_miniloops
    • widget_recent-posts
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments

Smoke tests 50% 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 everything seems fine, this is not an exhaustive test

SRP 0% 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
Please take a closer look at the following
  • 5× PHP files output text when accessed directly:
    • > /wp-content/plugins/mini-loops/helpers.php
    • > /wp-content/plugins/mini-loops/widget.php
    • > /wp-content/plugins/mini-loops/tests/bootstrap.php
    • > /wp-content/plugins/mini-loops/mini-loops.php
    • > /wp-content/plugins/mini-loops/form.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_UnitTestCase' not found in wp-content/plugins/mini-loops/tests/mini-loops-testcase.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
  • Screenshots: Screenshot #5 (Widget Options (pre 1.1)) image required
The official readme.txt is a good inspiration

mini-loops/mini-loops.php Passed 13 tests

The main file in "Mini Loops" v. 1.4.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
43 characters long description:
Query posts and display them where you want

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin1,734 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code
PHP61933381,114
Markdown21290309
Bourne Shell12411147
PO File1414492
JSON10055
XML10017

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity8.33
▷ Minimum class complexity1.00
▷ Maximum class complexity23.00
Average method complexity4.14
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods7
▷ Static methods00.00%
▷ Public methods7100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions39
▷ Named functions39100.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 images were found in this plugin