Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▼0.46MB] [CPU: ▼14.63ms] Passed 4 tests
Server-side resources used by Wp extended Post type
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.23 | 44.60 ▼1.13 |
Dashboard /wp-admin | 3.54 ▲0.19 | 49.13 ▼6.38 |
Posts /wp-admin/edit.php | 3.59 ▲0.23 | 47.41 ▼0.97 |
Add New Post /wp-admin/post-new.php | 3.39 ▼2.50 | 36.08 ▼50.02 |
Media Library /wp-admin/upload.php | 3.47 ▲0.23 | 36.13 ▲0.18 |
Add/Edit CPT /wp-admin/edit.php?post_type=wp_extended | 3.51 | 35.26 |
Add/Edit Custom Field /wp-admin/edit.php?post_type=wp_extended_meta | 3.51 | 34.08 |
Add/Edit Taxonomy /wp-admin/edit.php?post_type=wp_extended_tax | 3.51 | 35.87 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
Browser metrics Passed 4 tests
Checking browser requirements for Wp extended Post type
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,927 ▲181 | 13.64 ▼0.76 | 6.25 ▲4.03 | 43.05 ▼7.94 |
Dashboard /wp-admin | 2,244 ▲56 | 4.98 ▼0.91 | 106.22 ▼0.63 | 43.70 ▲0.43 |
Posts /wp-admin/edit.php | 2,130 ▲38 | 2.12 ▲0.09 | 40.67 ▼0.80 | 35.05 ▼1.65 |
Add New Post /wp-admin/post-new.php | 1,550 ▲8 | 23.30 ▲4.74 | 659.15 ▼9.22 | 49.06 ▼7.30 |
Media Library /wp-admin/upload.php | 1,426 ▲41 | 4.32 ▲0.02 | 100.09 ▲0.40 | 42.34 ▼4.29 |
Add/Edit CPT /wp-admin/edit.php?post_type=wp_extended | 1,091 | 2.04 | 37.49 | 29.22 |
Add/Edit Custom Field /wp-admin/edit.php?post_type=wp_extended_meta | 1,094 | 2.09 | 34.00 | 30.67 |
Add/Edit Taxonomy /wp-admin/edit.php?post_type=wp_extended_tax | 1,094 | 2.04 | 35.22 | 32.47 |
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
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
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_attr() in wp-content/plugins/extended-custom-post/admin/views/admin-meta-settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/extended-custom-post/admin/views/cpt.php:29
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
These attributes need your attention:
- Screenshots: Add images for these screenshots: #1 (Admin Cutom Fields settings for custom post type. (assets/Screenshot_1.png)), #2 (Generated PostType and custom metaboxes. (assets/screenshot_2.png))
extended-custom-post/extended-custom-post.php 85% from 13 tests
This is the main PHP file of "Wp extended Post type" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Requires at least: Required version must be the same as the one declared in readme.txt ("4.0.1" instead of "4.4")
- Requires PHP: Required version must be the same as the one declared in readme.txt ("5.4" instead of "7.0")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected3,102 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 61 | 25 | 1,231 |
PHP | 9 | 139 | 68 | 1,109 |
CSS | 3 | 94 | 4 | 762 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.94 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 14.00 |
Average method complexity | 2.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 21 | |
▷ Named functions | 20 | 95.24% |
▷ Anonymous functions | 1 | 4.76% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
2 PNG files occupy 0.16MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/Screenshot_2.png | 104.72KB | 48.04KB | ▼ 54.13% |
assets/Screenshot_1.png | 63.65KB | 29.90KB | ▼ 53.03% |