Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully
Server metrics [RAM: ▲0.07MB] [CPU: ▼5.15ms] Passed 4 tests
An overview of server-side resources used by Manage Custom Post Types
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 36.97 ▼2.58 |
Dashboard /wp-admin | 3.37 ▲0.07 | 45.55 ▼2.00 |
Posts /wp-admin/edit.php | 3.49 ▲0.13 | 48.42 ▲1.30 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 89.42 ▼17.32 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 40.80 ▲4.00 |
Add New Post Types /wp-admin/admin.php?page=mcpt_add_new_post_types | 3.32 | 29.74 |
Manage Post Types /wp-admin/admin.php?page=mcpt_manage_post_types | 3.36 | 34.19 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Manage Custom Post Types
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,939 ▲204 | 14.05 ▼0.35 | 4.94 ▲3.18 | 37.29 ▼6.31 |
Dashboard /wp-admin | 2,240 ▲51 | 4.89 ▼0.05 | 112.44 ▼1.23 | 42.44 ▲3.69 |
Posts /wp-admin/edit.php | 2,120 ▲31 | 2.03 ▲0.03 | 37.78 ▲3.70 | 36.37 ▲3.69 |
Add New Post /wp-admin/post-new.php | 1,544 ▲13 | 23.37 ▲5.23 | 665.67 ▲50.52 | 60.75 ▲4.17 |
Media Library /wp-admin/upload.php | 1,422 ▲37 | 4.16 ▼0.13 | 113.22 ▲16.01 | 50.04 ▲6.84 |
Add New Post Types /wp-admin/admin.php?page=mcpt_add_new_post_types | 916 | 2.04 | 29.36 | 27.33 |
Manage Post Types /wp-admin/admin.php?page=mcpt_manage_post_types | 909 | 1.71 | 23.44 | 26.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/admin.php?page=mcpt_manage_post_types
- > Notice in wp-content/plugins/manage-custom-post-types/admin/partials/manage-post-types.php+238
Undefined variable: mcpt_temp_id
- > GET request to /wp-admin/admin.php?page=mcpt_manage_post_types
- > Notice in wp-content/plugins/manage-custom-post-types/admin/partials/manage-post-types.php+238
Trying to access array offset on value of type null
- > GET request to /wp-admin/admin.php?page=mcpt_manage_post_types
- > Warning in wp-content/plugins/manage-custom-post-types/admin/partials/manage-post-types.php+260
count(): Parameter must be an array or an object that implements Countable
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
Almost there! Just fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/manage-custom-post-types/public/partials/manage-custom-post-types-public-display.php
- > /wp-content/plugins/manage-custom-post-types/admin/partials/manage-custom-post-types-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots need descriptions #1, #2 in manage-custom-post-types/assets to your readme.txt
- Plugin Name: You should set the name of your plugin on the first line (
=== manage-custom-post-types ===
)
manage-custom-post-types/manage-custom-post-types.php Passed 13 tests
"Manage Custom Post Types" version 1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
96 characters long description:
This is a short description of what the plugin does. It's displayed in the WordPress admin area.
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 plugin780 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 14 | 176 | 548 | 768 |
JavaScript | 2 | 4 | 54 | 12 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 1.57 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.16 |
▷ 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 | 25 | |
▷ Static methods | 2 | 8.00% |
▷ Public methods | 20 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin