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
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼0.20ms] Passed 4 tests
This is a short check of server-side resources used by Requirements Checklist
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 40.57 ▼5.29 |
Dashboard /wp-admin | 3.34 ▲0.04 | 51.22 ▼1.50 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 52.92 ▲2.09 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.04 | 98.71 ▲5.48 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 38.44 ▲3.89 |
Requirements Checklist /wp-admin/options-general.php?page=aptrc | 3.26 | 34.81 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 9 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
aptrc_post |
db_upgraded |
aptrc-display-activation-message |
can_compress_scripts |
aptrc_page |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Requirements Checklist
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲17 | 13.25 ▼0.08 | 1.99 ▲0.20 | 70.34 ▲23.69 |
Dashboard /wp-admin | 2,215 ▲9 | 4.84 ▼0.01 | 98.17 ▼11.36 | 40.51 ▼3.29 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.05 ▲0.02 | 42.04 ▲8.35 | 37.55 ▲1.14 |
Add New Post /wp-admin/post-new.php | 1,522 ▲8 | 23.39 ▲5.84 | 611.71 ▼98.57 | 51.17 ▼3.62 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.25 ▲0.06 | 96.67 ▼4.53 | 41.18 ▼0.11 |
Requirements Checklist /wp-admin/options-general.php?page=aptrc | 979 | 2.18 | 28.14 | 38.10 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
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
Please take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/post-type-requirements-checklist/admin/views/admin.php:19
- > PHP Fatal error
Uncaught Error: Class 'post_type_requirements_checklist' not found in wp-content/plugins/post-type-requirements-checklist/admin/includes/settings.php:32
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 11 tag instead of maximum 10
post-type-requirements-checklist/post-type-requirements-checklist.php 92% from 13 tests
The primary PHP file in "Requirements Checklist" version 2.4 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
There were no executable files found in this plugin1,822 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 437 | 538 | 1,429 |
PO File | 2 | 69 | 168 | 225 |
CSS | 2 | 15 | 2 | 168 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 48.67 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 67.00 |
Average method complexity | 3.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 60.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 | 71 | |
▷ Static methods | 9 | 12.68% |
▷ Public methods | 64 | 90.14% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 9.86% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/yes.png | 0.57KB | 0.52KB | ▼ 8.42% |