Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▼0.04MB] [CPU: ▼14.16ms] Passed 4 tests
This is a short check of server-side resources used by WP Monsters
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.32 | 37.65 ▼3.75 |
Dashboard /wp-admin | 3.58 ▲0.28 | 48.91 ▲1.30 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 49.10 ▲1.00 |
Add New Post /wp-admin/post-new.php | 4.86 ▼1.02 | 44.43 ▼55.19 |
Media Library /wp-admin/upload.php | 3.50 ▲0.27 | 41.56 ▲5.85 |
Type of traps /wp-admin/edit-tags.php?taxonomy=traps&post_type=trap | 3.49 | 37.90 |
Weapons /wp-admin/edit.php?post_type=weapon | 3.58 | 44.91 |
Type of magic items /wp-admin/edit-tags.php?taxonomy=magic_items&post_type=magic_item | 3.49 | 37.69 |
Type of monsters /wp-admin/edit-tags.php?taxonomy=monsters&post_type=monster | 3.49 | 40.12 |
Feats /wp-admin/edit.php?post_type=feat | 3.58 | 39.07 |
Spells /wp-admin/edit.php?post_type=spell | 3.58 | 40.21 |
Type of spells /wp-admin/edit-tags.php?taxonomy=spells&post_type=spell | 3.49 | 43.32 |
Type of feats /wp-admin/edit-tags.php?taxonomy=feats&post_type=feat | 3.49 | 38.97 |
Type of weapons /wp-admin/edit-tags.php?taxonomy=weapons&post_type=weapon | 3.49 | 38.58 |
Traps /wp-admin/edit.php?post_type=trap | 3.58 | 40.73 |
Server storage [IO: ▲0.27MB] [DB: ▲0.02MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 21 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Monsters
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,920 ▲185 | 13.24 ▼1.44 | 1.80 ▲0.02 | 40.80 ▼4.38 |
Dashboard /wp-admin | 2,290 ▲101 | 5.82 ▼0.03 | 116.63 ▼3.65 | 80.58 ▲32.93 |
Posts /wp-admin/edit.php | 2,194 ▲102 | 2.01 ▼0.05 | 35.63 ▼5.95 | 29.96 ▼6.52 |
Add New Post /wp-admin/post-new.php | 1,605 ▲72 | 22.99 ▼0.53 | 755.73 ▲78.91 | 58.94 ▼0.70 |
Media Library /wp-admin/upload.php | 1,478 ▲90 | 4.20 ▲0.00 | 104.45 ▲7.87 | 71.92 ▲25.45 |
Type of traps /wp-admin/edit-tags.php?taxonomy=traps&post_type=trap | 1,360 | 2.14 | 29.94 | 33.73 |
Weapons /wp-admin/edit.php?post_type=weapon | 1,174 | 1.93 | 33.15 | 29.52 |
Type of magic items /wp-admin/edit-tags.php?taxonomy=magic_items&post_type=magic_item | 1,357 | 2.14 | 27.92 | 30.98 |
Type of monsters /wp-admin/edit-tags.php?taxonomy=monsters&post_type=monster | 1,363 | 2.14 | 27.14 | 31.63 |
Feats /wp-admin/edit.php?post_type=feat | 1,171 | 1.94 | 31.41 | 35.58 |
Spells /wp-admin/edit.php?post_type=spell | 1,171 | 2.06 | 34.45 | 31.24 |
Type of spells /wp-admin/edit-tags.php?taxonomy=spells&post_type=spell | 1,357 | 2.14 | 27.14 | 30.78 |
Type of feats /wp-admin/edit-tags.php?taxonomy=feats&post_type=feat | 1,357 | 2.14 | 28.62 | 32.26 |
Type of weapons /wp-admin/edit-tags.php?taxonomy=weapons&post_type=weapon | 1,360 | 2.14 | 27.64 | 30.29 |
Traps /wp-admin/edit.php?post_type=trap | 1,182 | 1.93 | 34.03 | 32.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means 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
- 8× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-monsters/wp-weapons.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-monsters/templates.php:89
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-monsters/wp-magic-items.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-monsters/wp-monsters.php:22
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-monsters/wp-feats.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-monsters/wp-traps.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-monsters/wp-cities.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/wp-monsters/wp-spells.php:9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 11 tag instead of maximum 10
wp-monsters/wp-monsters.php Passed 13 tests
"WP Monsters" version 1.3.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
124 characters long description:
This plugin allows to the bloggers to publish in a easy way their Pathfinder RPG home-brew monster in their Wordpress blogs.
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
Everything looks great! No dangerous files found in this plugin4,305 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 248 | 164 | 2,238 |
PO File | 3 | 1,004 | 1,117 | 2,067 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
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 | 137 | |
▷ Named functions | 137 | 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
6 PNG files occupy 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/spell.png | 3.44KB | 0.98KB | ▼ 71.46% |
img/weapon.png | 3.06KB | 0.36KB | ▼ 88.24% |
img/magic_item.png | 3.11KB | 0.41KB | ▼ 86.77% |
img/feat.png | 3.28KB | 0.66KB | ▼ 79.80% |
img/trap.png | 3.43KB | 0.86KB | ▼ 74.89% |