Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.54MB] [CPU: ▼17.97ms] Passed 4 tests
An overview of server-side resources used by Minecraft Item Library
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.08 | 23.79 ▼16.17 |
Dashboard /wp-admin | 3.47 ▲0.17 | 44.73 ▼4.84 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 45.23 ▲1.81 |
Add New Post /wp-admin/post-new.php | 3.32 ▼2.57 | 34.79 ▼51.53 |
Media Library /wp-admin/upload.php | 3.39 ▲0.17 | 33.31 ▲0.67 |
MC Categories /wp-admin/edit-tags.php?taxonomy=mctype&post_type=minecraft-item | 3.43 | 51.28 |
Add New MC Item /wp-admin/post-new.php?post_type=minecraft-item | 3.31 | 34.04 |
Minecraft Item /wp-admin/edit.php?post_type=minecraft-item | 3.44 | 36.07 |
Server storage [IO: ▲0.10MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 28 new files
Database: no new tables, 8 new options
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
almc_options |
mctype_children |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Minecraft Item Library
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,840 ▲94 | 13.30 ▼1.00 | 1.59 ▼0.55 | 41.18 ▲0.67 |
Dashboard /wp-admin | 2,241 ▲59 | 5.85 ▼0.01 | 100.12 ▼3.59 | 43.43 ▲1.80 |
Posts /wp-admin/edit.php | 2,124 ▲38 | 2.03 ▼0.02 | 37.55 ▲0.71 | 35.05 ▼0.29 |
Add New Post /wp-admin/post-new.php | 1,571 ▲33 | 18.33 ▼4.81 | 635.31 ▼42.22 | 55.64 ▼8.65 |
Media Library /wp-admin/upload.php | 1,420 ▲35 | 4.29 ▲0.05 | 96.40 ▼19.40 | 42.17 ▼3.72 |
MC Categories /wp-admin/edit-tags.php?taxonomy=mctype&post_type=minecraft-item | 2,463 | 2.14 | 28.91 | 38.79 |
Add New MC Item /wp-admin/post-new.php?post_type=minecraft-item | 3,691 | 7.96 | 186.00 | 157.35 |
Minecraft Item /wp-admin/edit.php?post_type=minecraft-item | 1,130 | 1.93 | 31.65 | 31.20 |
MC Settings /wp-admin/mcitemadmin.php | 26 | 0.44 | 0.08 | 11.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- This plugin did not uninstall successfully, leaving 8 options in the database
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- mctype_children
- widget_theysaidso_widget
- theysaidso_admin_options
- almc_options
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- > GET request to /wp-admin/post-new.php?post_type=minecraft-item
- > Notice in wp-content/plugins/minecraft-item-library/lib/mcitemboxes.php+370
Undefined index: craftable_noncename
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Almost there! Just fix the following items
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/minecraft-item-library/plugin.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/minecraft-item-library/admin/mcitemadmin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/minecraft-item-library/lib/mcitemtables.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/minecraft-item-library/lib/mcitemboxes.php:359
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/minecraft-item-library/lib/mciteminit.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following browser errors
- > GET request to /wp-admin/mcitemadmin.php
- > Network (severe)
wp-admin/mcitemadmin.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
3 plugin tags: recipes, minecraft, items
minecraft-item-library/plugin.php 92% from 13 tests
Analyzing the main PHP file in "Minecraft Item Library" version 1.1
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("minecraft-item-library.php" instead of "plugin.php")
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
There were no executable files found in this plugin1,017 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 71 | 39 | 984 |
CSS | 1 | 14 | 7 | 33 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
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 | 19 | |
▷ Named functions | 19 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
18 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/smelting.png | 4.42KB | 2.18KB | ▼ 50.70% |
images/pop8.png | 1.05KB | 0.17KB | ▼ 84.24% |
images/heart-g.png | 1.46KB | 0.78KB | ▼ 46.80% |
images/pop7.png | 1.08KB | 0.18KB | ▼ 83.51% |
images/pop2.png | 0.20KB | 0.14KB | ▼ 26.73% |