Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼141.79ms] Passed 4 tests
A check of server-side resources used by Games Catalog
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.94 ▲0.11 | 32.80 ▼4.65 |
Dashboard /wp-admin | 3.17 ▲0.11 | 48.85 ▲4.69 |
Posts /wp-admin/edit.php | 3.22 ▲0.11 | 44.18 ▼3.18 |
Add New Post /wp-admin/post-new.php | 5.53 ▲0.09 | 93.70 ▼555.03 |
Media Library /wp-admin/upload.php | 3.10 ▲0.10 | 35.37 ▼4.30 |
Catalog /wp-admin/options-general.php?page=gc_games | 3.14 | 35.78 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 13 new files
Database: 2 new tables, 4 new options
New tables |
---|
wp_categories |
wp_games |
New WordPress options |
---|
gc_news_days |
category_children |
gc_description_length |
gc_price_format |
Browser metrics Passed 4 tests
Games Catalog: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,784 ▲188 | 16.52 ▲0.98 | 8.99 ▼2.01 | 43.54 ▼4.15 |
Dashboard /wp-admin | 3,040 ▲106 | 6.59 ▲0.64 | 152.76 ▲8.71 | 124.40 ▲1.95 |
Posts /wp-admin/edit.php | 2,766 ▲30 | 2.72 ▲0.00 | 64.12 ▼2.12 | 91.83 ▼4.44 |
Add New Post /wp-admin/post-new.php | 1,503 ▼369 | 18.58 ▼0.48 | 361.44 ▲11.81 | 113.86 ▲4.02 |
Media Library /wp-admin/upload.php | 1,812 ▲5 | 5.02 ▼0.02 | 145.61 ▲4.40 | 123.70 ▲1.20 |
Catalog /wp-admin/options-general.php?page=gc_games | 2,100 | 7.69 | 159.85 | 107.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- Zombie tables detected upon uninstall: 2 tables
- wp_games
- wp_categories
- Zombie WordPress options were found after uninstall: 4 options
- gc_price_format
- gc_description_length
- category_children
- gc_news_days
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
Please fix the following items
- 4× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/game-catalog/games-catalog.php
- > /wp-content/plugins/game-catalog/shorttag-game-of-page.php
- > /wp-content/plugins/game-catalog/shorttag-list.php
- > /wp-content/plugins/game-catalog/functions.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Please fix the following browser errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=gc_games
- > Network (severe)
wp-content/plugins/games-catalog/admin-crud.js?ver=5.8.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
- Donate link: Please fix this invalid URI: ""
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== game-catalog ===
)
game-catalog/games-catalog.php 85% from 13 tests
The main PHP script in "Games Catalog" version 1.2.0 is automatically included on every request by WordPress
You should first fix the following items:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("game-catalog.php" instead of "games-catalog.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin735 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 59 | 108 | 504 |
CSS | 1 | 5 | 13 | 151 |
PO File | 1 | 33 | 2 | 71 |
JavaScript | 1 | 3 | 13 | 9 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin