Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼143.56ms] Passed 4 tests
A check of server-side resources used by About US Post Type
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.03 | 26.52 ▲2.09 |
Dashboard /wp-admin | 3.11 ▲0.04 | 36.41 ▼6.43 |
Posts /wp-admin/edit.php | 3.22 ▲0.11 | 40.83 ▲6.26 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.01 | 84.03 ▼567.10 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 23.76 ▼2.81 |
All About US /wp-admin/edit.php?post_type=about_post_type | 3.11 | 30.60 |
Add New /wp-admin/post-new.php?post_type=about_post_type | 3.14 | 37.52 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
This is an overview of browser requirements for About US Post Type
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,028 ▲426 | 17.58 ▲2.00 | 9.52 ▲4.57 | 73.10 ▼2.98 |
Dashboard /wp-admin | 3,187 ▲291 | 8.03 ▲1.90 | 136.41 ▲4.31 | 203.56 ▲29.99 |
Posts /wp-admin/edit.php | 3,024 ▲284 | 5.06 ▲1.84 | 76.58 ▲14.74 | 159.67 ▲22.53 |
Add New Post /wp-admin/post-new.php | 3,507 ▼301 | 17.96 ▲1.15 | 400.43 ▼61.35 | 190.64 ▲23.03 |
Media Library /wp-admin/upload.php | 1,811 ▲59 | 5.49 ▼0.02 | 111.23 ▼32.73 | 208.18 ▲21.22 |
All About US /wp-admin/edit.php?post_type=about_post_type | 1,718 | 5.03 | 73.25 | 123.41 |
Add New /wp-admin/post-new.php?post_type=about_post_type | 2,895 | 9.90 | 188.00 | 230.44 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
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
Please take a closer look at the following
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/about-post-type/inc/front-end.php:52
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-post-type/about-post-type.php:19
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/about-post-type/inc/class-about-post-type.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/about-post-type/inc/thumbnails.php:7
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=about_post_type
- > Network (severe)
wp-content/plugins/about-post-type//js/admin.js?ver=5.8.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Screenshots: Screenshot #1 (Admin Panel view of submitted form data.) image required
about-post-type/about-post-type.php Passed 13 tests
The principal PHP file in "About US Post Type" v. 1.0 is loaded by WordPress automatically on each request
40 characters long description:
Simple WordPress About Post Type Plugin.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected337 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 33 | 1 | 186 |
PHP | 4 | 68 | 34 | 151 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.11 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 2 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 2 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 10 | |
▷ Named functions | 10 | 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
6 PNG files occupy 0.18MB with 0.08MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 1.58KB | 1.43KB | ▼ 9.69% |
screenshot-1.png | 133.27KB | 40.96KB | ▼ 69.26% |
images/remove.png | 1.80KB | 1.48KB | ▼ 17.60% |
images/find-img.png | 28.58KB | 10.85KB | ▼ 62.03% |
images/logo.png | 11.25KB | 4.39KB | ▼ 60.99% |