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.12MB] [CPU: ▼0.70ms] Passed 4 tests
This is a short check of server-side resources used by Miscellany
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 44.41 ▲4.97 |
Dashboard /wp-admin | 3.41 ▲0.10 | 51.43 ▲4.72 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 52.56 ▼2.32 |
Add New Post /wp-admin/post-new.php | 6.20 ▲0.31 | 98.03 ▼6.10 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 36.33 ▲0.88 |
Add New /wp-admin/post-new.php?post_type=miscellany | 6.20 | 87.36 |
Tags /wp-admin/edit-tags.php?taxonomy=miscellany_tag&post_type=miscellany | 3.32 | 42.44 |
Categories /wp-admin/edit-tags.php?taxonomy=miscellany_category&post_type=miscellany | 3.32 | 35.93 |
All /wp-admin/edit.php?post_type=miscellany | 3.37 | 45.24 |
Tools/Language /wp-admin/edit-tags.php?taxonomy=tools_used&post_type=miscellany | 3.32 | 33.23 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Miscellany
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,944 ▲183 | 13.58 ▼0.71 | 5.96 ▲4.14 | 41.56 ▼4.34 |
Dashboard /wp-admin | 2,267 ▲73 | 5.84 ▼0.01 | 96.21 ▼8.64 | 42.18 ▼1.32 |
Posts /wp-admin/edit.php | 2,140 ▲40 | 2.00 ▼0.01 | 39.48 ▼2.33 | 36.45 ▼1.65 |
Add New Post /wp-admin/post-new.php | 1,562 ▲36 | 23.19 ▲5.43 | 669.50 ▲43.59 | 61.61 ▲11.72 |
Media Library /wp-admin/upload.php | 1,437 ▲37 | 4.25 ▲0.05 | 96.21 ▼16.63 | 45.07 ▼2.50 |
Add New /wp-admin/post-new.php?post_type=miscellany | 1,598 | 17.08 | 847.88 | 33.98 |
Tags /wp-admin/edit-tags.php?taxonomy=miscellany_tag&post_type=miscellany | 1,292 | 2.14 | 26.66 | 31.52 |
Categories /wp-admin/edit-tags.php?taxonomy=miscellany_category&post_type=miscellany | 1,317 | 2.14 | 26.99 | 30.74 |
All /wp-admin/edit.php?post_type=miscellany | 1,179 | 1.98 | 32.32 | 33.59 |
Tools/Language /wp-admin/edit-tags.php?taxonomy=tools_used&post_type=miscellany | 1,292 | 2.14 | 26.31 | 30.35 |
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
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- can_compress_scripts
- 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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please take a closer look at the following
- 2× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/ys-miscellany/admin/partials/miscellany-admin-display.php
- > /wp-content/plugins/ys-miscellany/public/partials/miscellany-public-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% 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:
- Plugin Name: You should set the name of your plugin on the first line (
=== ys-miscellany ===
)
ys-miscellany/miscellany.php 85% from 13 tests
The main PHP file in "Miscellany" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
- Main file name: Name the main plugin file the same as the plugin slug ("ys-miscellany.php" instead of "miscellany.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin259 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 125 | 543 | 253 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
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.07 |
Average class complexity | 1.43 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 24 | |
▷ Static methods | 2 | 8.33% |
▷ Public methods | 19 | 79.17% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.83% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
No PNG files were detected