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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.84 ▲0.12 | 42.14 ▲18.45 |
Dashboard /wp-admin | 3.07 ▲0.02 | 53.08 ▼3.21 |
Posts /wp-admin/edit.php | 3.12 ▲0.01 | 50.74 ▼1.67 |
Add New Post /wp-admin/post-new.php | 5.43 ▼0.01 | 99.15 ▼572.17 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 38.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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,738 ▲142 | 15.89 ▲0.24 | 10.30 ▲0.09 | 53.49 ▲0.62 |
Dashboard /wp-admin | 3,006 ▲72 | 5.94 ▼0.22 | 171.48 ▲1.92 | 122.64 ▲6.54 |
Posts /wp-admin/edit.php | 2,778 ▲39 | 2.73 ▲0.01 | 80.83 ▲7.00 | 99.45 ▲1.17 |
Add New Post /wp-admin/post-new.php | 1,698 ▲83 | 18.55 ▼2.76 | 424.11 ▲118.20 | 123.93 ▲0.64 |
Media Library /wp-admin/upload.php | 1,842 ▲35 | 5.06 ▲0.02 | 171.17 ▲3.62 | 135.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
- > PHP Fatal error
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.)
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 36 | 19 | 203 |
JavaScript | 1 | 0 | 0 | 9 |
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 code | 0.29 |
Average class complexity | 14.00 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.30 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 179.08KB | 189.08KB | 0.00% |
screenshot-3.png | 65.05KB | 71.92KB | 0.00% |
screenshot-1.png | 358.19KB | 377.70KB | 0.00% |