88% minigal-nano-wp

Code Review | Minigal Nano WP

WordPress plugin Minigal Nano WP scored 88% from 54 tests.

About plugin

  • Plugin page: minigal-nano-wp
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.6.1
  • WordPress version: 5.8.1
  • First release: Feb 26, 2017
  • Latest release: Feb 26, 2017
  • Number of updates: 9
  • Update frequency: every 0.3 days
  • Top authors: gduquerroy (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 378 total downloads

Benchmarks

Plugin footprint Passed 16 tests

Installer Passed 1 test

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

Server metrics [RAM: ▲0.15MB] [CPU: ▼136.76ms] Passed 4 tests

Analyzing server-side resources used by Minigal Nano WP
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.97 ▲0.2541.20 ▲18.20
Dashboard /wp-admin3.20 ▲0.1456.30 ▲10.85
Posts /wp-admin/edit.php3.31 ▲0.2050.11 ▲4.10
Add New Post /wp-admin/post-new.php5.55 ▲0.1296.75 ▼561.41
Media Library /wp-admin/upload.php3.14 ▲0.1434.63 ▼0.59
Minigal Nano WP /wp-admin/options-general.php?page=minigal_nano_wp_option_page3.2045.59

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 65 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

Checking browser requirements for Minigal Nano WP
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,922 ▲32617.86 ▲2.3028.91 ▲20.4850.29 ▼1.14
Dashboard /wp-admin2,972 ▲386.11 ▼0.00142.23 ▼5.37111.20 ▼6.81
Posts /wp-admin/edit.php2,741 ▲22.68 ▼0.0066.31 ▼3.8982.05 ▼12.85
Add New Post /wp-admin/post-new.php1,686 ▲18818.78 ▼0.03395.69 ▲8.65114.76 ▼3.14
Media Library /wp-admin/upload.php1,812 ▲85.02 ▲0.02157.47 ▼0.58125.06 ▲1.51
Minigal Nano WP /wp-admin/options-general.php?page=minigal_nano_wp_option_page1,4172.0960.5292.69

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/minigal-nano-wp/public/createthumb.php
    • > /wp-content/plugins/minigal-nano-wp/public/partials/plugin-minigal-nano-wp-display.php
  • 7× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/minigal-nano-wp/admin/partials/about/about.php:3
    • > PHP Notice
      Undefined index: upload_dir in wp-content/plugins/minigal-nano-wp/public/createthumb.php on line 12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/minigal-nano-wp/admin/partials/basic/customize-settings-display.php:3
    • > PHP Notice
      Undefined index: filename in wp-content/plugins/minigal-nano-wp/public/createthumb.php on line 11
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/minigal-nano-wp/admin/partials/admin-display.php:16
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/minigal-nano-wp/admin/partials/advanced/advanced-customize-settings-display.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/minigal-nano-wp/admin/partials/help/help.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need to be fixed: The official readme.txt is a good inspiration

minigal-nano-wp/minigal-nano-wp.php 92% from 13 tests

"Minigal Nano WP" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Description: A good plugin description is longer than 10 characters (currently 0 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected3,898 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript5862091,674
PHP172977051,038
HTML5161791
CSS45134236
PO File15561159

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity14.57
▷ Minimum class complexity1.00
▷ Maximum class complexity92.00
Average method complexity3.44
▷ Minimum method complexity1.00
▷ Maximum method complexity62.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods39
▷ Static methods25.13%
▷ Public methods3487.18%
▷ Protected methods00.00%
▷ Private methods512.82%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
18 PNG files occupy 0.11MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/images/filetype_PPTX.png8.95KB7.41KB▼ 17.27%
public/images/filetype_AUDIO.png6.92KB3.75KB▼ 45.85%
public/images/filetype_RAR.png10.22KB8.59KB▼ 15.99%
public/images/folder_green.png4.35KB3.39KB▼ 22.07%
public/images/close.png0.41KB0.42KB0.00%