94% mobi2go

Code Review | Mobi2Go

WordPress plugin Mobi2Go scored 94% from 54 tests.

About plugin

  • Plugin page: mobi2go
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.0-5.3
  • WordPress version: 5.8.1
  • First release: May 11, 2014
  • Latest release: Oct 24, 2019
  • Number of updates: 19
  • Update frequency: every 105.0 days
  • Top authors: chtombleson (78.95%)mobi2go (26.32%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active / 3,504 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
Install script ran successfully

Server metrics [RAM: ▲0.01MB] [CPU: ▼143.88ms] Passed 4 tests

Analyzing server-side resources used by Mobi2Go
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /2.84 ▲0.1242.14 ▲18.45
Dashboard /wp-admin3.07 ▲0.0253.08 ▼3.21
Posts /wp-admin/edit.php3.12 ▲0.0150.74 ▼1.67
Add New Post /wp-admin/post-new.php5.43 ▼0.0199.15 ▼572.17
Media Library /wp-admin/upload.php3.01 ▲0.0138.15 ▲1.55

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

A check of browser resources used by Mobi2Go
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,738 ▲14215.89 ▲0.2410.30 ▲0.0953.49 ▲0.62
Dashboard /wp-admin3,006 ▲725.94 ▼0.22171.48 ▲1.92122.64 ▲6.54
Posts /wp-admin/edit.php2,778 ▲392.73 ▲0.0180.83 ▲7.0099.45 ▲1.17
Add New Post /wp-admin/post-new.php1,698 ▲8318.55 ▼2.76424.11 ▲118.20123.93 ▲0.64
Media Library /wp-admin/upload.php1,842 ▲355.06 ▲0.02171.17 ▲3.62135.09 ▲3.45

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully

Smoke tests 75% 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 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/mobi2go/mobi2go.php:17

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 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
  • Screenshots: These screenshots require images: #1 (Mobi2Go’s ordering pages integrate effortlessly with your WordPress site to provide a branded ordering solution an app-like experience for mobile users.), #2 (Menu items are can be managed to provide customisation options for your customers.), #3 (Simple plugin requires only one setting to create embed shortcode.)
You can look at the official readme.txt

mobi2go/mobi2go.php Passed 13 tests

The main file in "Mobi2Go" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
99 characters long description:
Mobi2Go’s online ordering plugin lets your customers order online through your WordPress website.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin212 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP23619203
JavaScript1009

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.30
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods10100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
3 compressed PNG files occupy 0.59MB
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png179.08KB189.08KB0.00%
screenshot-3.png65.05KB71.92KB0.00%
screenshot-1.png358.19KB377.70KB0.00%