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
This plugin's installer ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▲0.29ms] Passed 4 tests
This is a short check of server-side resources used by Add Post Type Instructions
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 46.58 ▲0.50 |
Dashboard /wp-admin | 3.59 ▲0.29 | 49.15 ▼0.52 |
Posts /wp-admin/edit.php | 3.71 ▲0.35 | 47.41 ▲0.08 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 94.57 ▲4.74 |
Media Library /wp-admin/upload.php | 3.52 ▲0.28 | 38.87 ▲1.08 |
Post Type Instructions /wp-admin/options-general.php?page=apti | 3.54 | 37.43 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 16 new files
Database: no new tables, 11 new options
New WordPress options |
---|
apti_wp_block |
apti_page |
can_compress_scripts |
apti_wp_navigation |
theysaidso_admin_options |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
apti-display-activation-message |
apti_post |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Add Post Type Instructions
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲35 | 13.22 ▼1.16 | 1.60 ▼0.63 | 43.84 ▲0.81 |
Dashboard /wp-admin | 2,212 ▲24 | 6.01 ▲1.13 | 101.44 ▼15.85 | 40.30 ▼4.19 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.00 ▼0.14 | 46.64 ▲7.75 | 37.11 ▲0.65 |
Add New Post /wp-admin/post-new.php | 1,531 ▲12 | 18.16 ▼5.10 | 586.88 ▼16.45 | 52.61 ▼5.20 |
Media Library /wp-admin/upload.php | 1,394 ▲3 | 4.24 ▼0.08 | 94.30 ▼3.78 | 42.19 ▲0.36 |
Post Type Instructions /wp-admin/options-general.php?page=apti | 1,796 | 6.67 | 137.89 | 63.11 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- db_upgraded
Smoke tests 50% 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
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 esc_html() in wp-content/plugins/add-post-type-instructions/admin/views/admin.php:19
- > PHP Fatal error
Uncaught Error: Class 'add_post_type_instructions' not found in wp-content/plugins/add-post-type-instructions/admin/includes/settings.php:27
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=apti
- > Network (severe)
wp-content/plugins/add-post-type-instructions/admin/css/apti-settings.css?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
add-post-type-instructions/add-post-type-instructions.php 92% from 13 tests
The main PHP file in "Add Post Type Instructions" ver. 2.1.1 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Description: Please keep the plugin description shorter than 140 characters (currently 487 characters long)
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
No dangerous file extensions were detected1,363 lines of code in 8 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 421 | 428 | 1,336 |
CSS | 1 | 3 | 0 | 27 |
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.38 |
Average class complexity | 48.33 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 77.00 |
Average method complexity | 2.89 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 75 | |
▷ Static methods | 9 | 12.00% |
▷ Public methods | 68 | 90.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 9.33% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.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 images were found in this plugin