69% mnumidesigner

Code Review | MnumiDesigner - WooCommerce Product Designer for Photo Books, Photo Calendars and more

WordPress plugin MnumiDesigner - WooCommerce Product Designer for Photo Books, Photo Calendars and more scored 69% from 54 tests.

About plugin

  • Plugin page: mnumidesigner
  • Plugin version: 0.8
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.4.4
  • WordPress version: 6.3.1
  • First release: May 6, 2020
  • Latest release: Apr 5, 2021
  • Number of updates: 20
  • Update frequency: every 17.5 days
  • Top authors: ppakier2017 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active / 1,490 total downloads

Benchmarks

Plugin footprint 47% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully

Server metrics [RAM: ▲0.97MB] [CPU: ▲0.77ms] 75% from 4 tests

An overview of server-side resources used by MnumiDesigner - WooCommerce Product Designer for Photo Books, Photo Calendars and more
Please have a look at the following items
  • CPU: Total CPU usage should be kept under 500.00ms (currently 994.98ms on /wp-admin/admin.php?page=mnumidesigner)
PageMemory (MB)CPU Time (ms)
Home /4.41 ▲0.9443.10 ▲5.45
Dashboard /wp-admin4.31 ▲1.0054.58 ▲6.74
Posts /wp-admin/edit.php4.37 ▲1.0157.81 ▲7.69
Add New Post /wp-admin/post-new.php6.93 ▲1.0492.59 ▼16.74
Media Library /wp-admin/upload.php4.17 ▲0.9342.71 ▲7.61
Projects /wp-admin/admin.php?page=mnumidesigner-projects4.1442.15
Settings /wp-admin/admin.php?page=mnumidesigner-settings4.1337.18
Translations /wp-admin/admin.php?page=mnumidesigner-translations4.1439.52
Calendars /wp-admin/admin.php?page=mnumidesigner-calendars4.70517.99
All templates /wp-admin/admin.php?page=mnumidesigner5.43994.98

Server storage [IO: ▲0.38MB] [DB: ▲0.06MB] Passed 3 tests

Filesystem and database footprint
This plugin installed successfully
Filesystem: 59 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

MnumiDesigner - WooCommerce Product Designer for Photo Books, Photo Calendars and more: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,915 ▲18013.41 ▼0.961.77 ▲0.0740.68 ▼0.55
Dashboard /wp-admin2,321 ▲1334.88 ▲0.00108.34 ▼4.9139.55 ▼0.93
Posts /wp-admin/edit.php2,207 ▲1182.07 ▲0.0337.52 ▼2.8736.10 ▲1.15
Add New Post /wp-admin/post-new.php1,553 ▲3317.67 ▼5.71679.87 ▲57.8455.55 ▼4.63
Media Library /wp-admin/upload.php1,506 ▲1184.21 ▼0.0297.23 ▼3.5642.64 ▼1.19
Projects /wp-admin/admin.php?page=mnumidesigner-projects1,3493.2457.7029.73
Settings /wp-admin/admin.php?page=mnumidesigner-settings9632.3937.6428.97
Translations /wp-admin/admin.php?page=mnumidesigner-translations1,2083.0353.4625.75
Calendars /wp-admin/admin.php?page=mnumidesigner-calendars1,2023.0047.4327.28
All templates /wp-admin/admin.php?page=mnumidesigner1,3933.0548.9927.06

Uninstaller [IO: ▲0.38MB] [DB: ▲0.06MB] 25% from 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • Uninstall procedure validation failed for this plugin
    • > Error in wp-content/plugins/mnumidesigner/uninstall.php+14
    Uncaught Error: Call to undefined method MnumiDesigner_Install::remove_roles() in wp-content/plugins/mnumidesigner/uninstall.php:14
    Stack trace:
    #0 wp-admin/includes/plugin.php(1245): include_once()
    #1 wp-admin/includes/plugin.php(960): uninstall_plugin()
  • This plugin has failed uninstalling correctly, leaving 59 files (0.38MB) in the plugin directory
    • (new file) assets/css/admin.css
    • (new file) assets/js/admin/calendars.js
    • (new file) admin/woocommerce/class-mnumidesigner-wc-order-data.php
    • (new file) admin/.htaccess
    • (new file) admin/class-mnumidesigner-templates-list-table.php
    • (new file) admin/class-mnumidesigner-translations-list-table.php
    • (new file) admin/class-mnumidesigner-settings.php
    • (new file) admin/class-mnumidesigner-calendars-list-table.php
    • (new file) admin/class-mnumidesigner-customer-projects-list-table.php
    • (new file) admin/woocommerce/class-mnumidesigner-wc-product.php
    • ...
  • The uninstall procedure has failed, leaving 7 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • recovery_mode_email_last_sent
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

SRP Passed 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
The SRP test was a success

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 93% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: photo calendar, woocommerce, product customiser, print, product designer...

mnumidesigner/mnumidesigner.php 85% from 13 tests

The principal PHP file in "MnumiDesigner - WooCommerce Product Designer for Photo Books, Photo Calendars and more" v. 0.8 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
  • Requires at least: The required version number must match the one declared in readme.txt ("4.6" instead of "3.0.0")
  • Description: Please keep the plugin description shorter than 140 characters (currently 152 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
No dangerous file extensions were detected8,848 lines of code in 55 files:
LanguageFilesBlank linesComment linesLines of code
PHP431,3123,0526,881
JavaScript9116551,688
CSS1160152
Markdown128095
SVG12132

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity16.97
▷ Minimum class complexity1.00
▷ Maximum class complexity66.00
Average method complexity2.35
▷ Minimum method complexity1.00
▷ Maximum method complexity22.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes35
▷ Abstract classes411.43%
▷ Concrete classes3188.57%
▷ Final classes39.68%
Methods400
▷ Static methods6716.75%
▷ Public methods31177.75%
▷ Protected methods6315.75%
▷ Private methods266.50%
Functions24
▷ Named functions1458.33%
▷ Anonymous functions1041.67%
Constants32
▷ Global constants13.12%
▷ Class constants3196.88%
▷ Public constants31100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin