Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Please fix the following installer errors
- This plugin did not install gracefully
- > Warning in wp-content/plugins/mobigatevn/admin/includes/game-list-table.php+119
Declaration of Game_List_Table::prepare_items($data_source) should be compatible with WP_List_Table::prepare_items()
Server metrics [RAM: ▼1.75MB] [CPU: ▼227.88ms] Passed 4 tests
A check of server-side resources used by Mobigate
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.87 ▲0.15 | 39.57 ▲13.02 |
Dashboard /wp-admin | 1.90 ▼1.16 | 11.62 ▼44.35 |
Posts /wp-admin/edit.php | 1.90 ▼1.21 | 6.97 ▼43.14 |
Add New Post /wp-admin/post-new.php | 1.90 ▼3.53 | 5.80 ▼795.44 |
Media Library /wp-admin/upload.php | 1.90 ▼1.10 | 6.01 ▼28.60 |
Mobigate /wp-admin/admin.php?page=mobigate | 1.90 | 5.64 |
Games /wp-admin/admin.php?page=list_of_game | 1.90 | 6.62 |
Select categry /wp-admin/admin.php?page=select_category_for_game | 1.90 | 10.13 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 34 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Mobigate: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,851 ▲279 | 16.20 ▲0.50 | 16.22 ▲6.15 | 47.45 ▼5.16 |
Dashboard /wp-admin | 3,001 ▲65 | 5.95 ▼0.03 | 156.10 ▼16.75 | 120.50 ▼3.36 |
Posts /wp-admin/edit.php | 2,778 ▲42 | 2.71 ▼0.01 | 63.41 ▼3.68 | 93.83 ▼0.96 |
Add New Post /wp-admin/post-new.php | 1,710 ▲27 | 18.80 ▲0.03 | 420.29 ▲5.15 | 119.51 ▲0.44 |
Media Library /wp-admin/upload.php | 1,845 ▲38 | 5.05 ▲0.04 | 162.31 ▼1.96 | 123.86 ▼0.66 |
Mobigate /wp-admin/admin.php?page=mobigate | 1,080 | 2.52 | 59.35 | 77.15 |
Games /wp-admin/admin.php?page=list_of_game | 1,270 | 2.13 | 59.71 | 85.88 |
Select categry /wp-admin/admin.php?page=select_category_for_game | 1,079 | 2.09 | 58.40 | 93.75 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/mobigatevn/admin/includes/game-list-table.php+119
Declaration of Game_List_Table::prepare_items($data_source) should be compatible with WP_List_Table::prepare_items()
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Almost there, just fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=select_category_for_game
- > Warning in wp-content/plugins/mobigatevn/admin/includes/game-list-table.php+119
Declaration of Game_List_Table::prepare_items($data_source) should be compatible with WP_List_Table::prepare_items()
- > GET request to /wp-admin/admin.php?page=list_of_game
- > Warning in wp-content/plugins/mobigatevn/admin/includes/game-list-table.php+124
usort() expects parameter 1 to be array, bool given
- > GET request to /wp-admin/admin.php?page=list_of_game
- > Warning in wp-content/plugins/mobigatevn/admin/includes/game-list-table.php+128
count(): Parameter must be an array or an object that implements Countable
- > GET request to /wp-admin/admin.php?page=list_of_game
- > Warning in wp-content/plugins/mobigatevn/admin/includes/game-list-table.php+131
array_slice() expects parameter 1 to be array, bool given
- > GET request to /wp-admin/admin.php?page=select_category_for_game
- > Notice in wp-content/plugins/mobigatevn/admin/views/category.php+12
Undefined index: requestId
- > GET request to /wp-admin/admin.php?page=select_category_for_game
- > Notice in wp-content/plugins/mobigatevn/admin/views/category.php+14
Undefined index: action
SRP 0% from 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
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/mobigatevn/public/views/public.php
- 7× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/mobigatevn/admin/views/category.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/mobigatevn/admin/views/admin.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/mobigatevn/admin/views/games.php:9
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/mobigatevn/admin/includes/game-list-table.php on line 7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/mobigatevn/admin/includes/wp-flash-message.php:5
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/mobigatevn/admin/includes/game-list-table.php on line 7
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/mobigatevn/admin/includes/game-list-table.php on line 7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
2 plugin tags: spam, comments
mobigatevn/mobigate.php 92% from 13 tests
The main PHP file in "Mobigate" ver. 1.0.3 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("mobigatevn.php" instead of "mobigate.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin748 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 208 | 442 | 691 |
CSS | 2 | 8 | 2 | 45 |
JavaScript | 2 | 8 | 2 | 10 |
Markdown | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 12.00 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 26.00 |
Average method complexity | 2.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 53 | |
▷ Static methods | 14 | 26.42% |
▷ Public methods | 45 | 84.91% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 15.09% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
2 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/download.png | 2.84KB | 0.14KB | ▼ 95.11% |
public/assets/css/download.png | 2.84KB | 0.14KB | ▼ 95.11% |