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.01MB] [CPU: ▲2.44ms] Passed 4 tests
This is a short check of server-side resources used by Post type archive in menu
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.33 ▼1.82 |
Dashboard /wp-admin | 3.31 ▲0.01 | 52.56 ▲4.61 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 49.23 ▲6.08 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 90.32 ▲3.48 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.26 ▲3.48 |
Server storage [IO: ▲0.71MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Post type archive in menu
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.28 ▼0.28 | 1.98 ▲0.32 | 44.23 ▲4.57 |
Dashboard /wp-admin | 2,195 ▲21 | 5.62 ▲0.08 | 85.83 ▲1.67 | 41.12 ▼1.89 |
Posts /wp-admin/edit.php | 2,103 ▼0 | 1.96 ▼0.01 | 33.69 ▼10.74 | 31.82 ▼7.84 |
Add New Post /wp-admin/post-new.php | 1,526 ▼0 | 22.93 ▼0.61 | 615.40 ▼75.78 | 50.38 ▼13.13 |
Media Library /wp-admin/upload.php | 1,394 ▼6 | 4.14 ▼0.08 | 106.50 ▲7.35 | 45.15 ▲1.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- 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
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-type-archive-in-menu/trunk/post-type-archive-in-menu.php:95
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/post-type-archive-in-menu/post-type-archive-in-menu.php:95
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
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
These attributes need your attention:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== post-type-archive-in-menu ===
)
post-type-archive-in-menu/post-type-archive-in-menu.php Passed 13 tests
The principal PHP file in "Post type archive in menu" v. 1.0.1 is loaded by WordPress automatically on each request
74 characters long description:
Add post type (custom) archive links easily through WP builtin menu system
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
Good job! No executable or dangerous file extensions detected98 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 26 | 50 | 98 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
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 | 8 | |
▷ Named functions | 8 | 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 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 0.69MB with 0.44MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 69.13KB | 23.09KB | ▼ 66.60% |
trunk/assets/screenshot-2.png | 200.86KB | 73.46KB | ▼ 63.43% |
assets/screenshot-2.png | 200.86KB | 73.46KB | ▼ 63.43% |
assets/banner-772x250.png | 82.35KB | 32.38KB | ▼ 60.68% |
trunk/assets/banner-772x250.png | 85.86KB | 33.66KB | ▼ 60.80% |