Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.05MB] [CPU: ▼3.72ms] Passed 4 tests
Analyzing server-side resources used by Halloween Panda
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.08 | 43.49 ▲1.14 |
Dashboard /wp-admin | 3.36 ▲0.05 | 45.77 ▼6.08 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 47.29 ▼0.66 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 94.78 ▼4.65 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 34.51 ▼3.48 |
Server storage [IO: ▲3.68MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 58 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
pix_hp_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for Halloween Panda
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,960 ▲225 | 13.59 ▼0.78 | 11.14 ▲9.04 | 43.37 ▼7.21 |
Dashboard /wp-admin | 2,224 ▲33 | 4.83 ▼1.08 | 105.80 ▼0.51 | 40.17 ▼6.45 |
Posts /wp-admin/edit.php | 2,107 ▲21 | 2.17 ▲0.18 | 39.74 ▲4.49 | 34.04 ▼1.69 |
Add New Post /wp-admin/post-new.php | 1,553 ▲39 | 23.24 ▲5.58 | 651.30 ▼45.04 | 52.65 ▼2.41 |
Media Library /wp-admin/upload.php | 1,406 ▲18 | 4.21 ▲0.03 | 105.30 ▲3.15 | 46.27 ▲0.17 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- The uninstall procedure has failed, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- can_compress_scripts
- pix_hp_options
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
- 5× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/halloween-panda/_controllers/hp-controller.php
- > /wp-content/plugins/halloween-panda/_views/hp-frontend.php
- > /wp-content/plugins/halloween-panda/_models/hp-main.php
- > /wp-content/plugins/halloween-panda/_views/hp-backend.php
- > /wp-content/plugins/halloween-panda/base.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: There are too many tags (19 tag instead of maximum 10)
halloween-panda/base.php 77% from 13 tests
The principal PHP file in "Halloween Panda" v. 1.0.6 is loaded by WordPress automatically on each request
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("halloween-panda.php" instead of "base.php")
- Domain Path: The domain path follows the same naming rules as the domain name, using only dashes and lowercase characters ("halloween-panda")
- Domain Path: Please prefix the domain path with a forward slash character ("/halloween-panda")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Good job! No executable or dangerous file extensions detected9,573 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 8 | 21 | 6 | 8,885 |
PHP | 5 | 66 | 120 | 432 |
CSS | 4 | 1 | 0 | 219 |
JavaScript | 4 | 4 | 7 | 37 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
13 PNG files occupy 0.87MB with 0.53MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/icon_carrots.png | 103.53KB | 36.94KB | ▼ 64.32% |
assets/images/popup_2.png | 72.69KB | 26.54KB | ▼ 63.49% |
assets/images/icon_ghosts.png | 156.87KB | 62.43KB | ▼ 60.20% |
assets/images/icon_pumpkins.png | 146.58KB | 55.51KB | ▼ 62.13% |
assets/images/dark_world.png | 37.26KB | 17.70KB | ▼ 52.51% |