Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▼0.00MB] [CPU: ▼7.01ms] Passed 4 tests
Analyzing server-side resources used by Arastoo Custom Post Type
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 40.77 ▼8.10 |
Dashboard /wp-admin | 3.31 ▼0.03 | 56.50 ▼9.76 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.60 ▼5.64 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 93.42 ▼4.53 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 41.13 ▲2.10 |
Arastoo CPT /wp-admin/options-general.php?page=arastoo-cpt | 3.20 | 33.47 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Arastoo Custom Post Type
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲60 | 14.74 ▲0.16 | 2.09 ▲0.39 | 46.18 ▲3.41 |
Dashboard /wp-admin | 2,224 ▲21 | 4.86 ▼0.01 | 116.99 ▲2.36 | 43.60 ▼3.89 |
Posts /wp-admin/edit.php | 2,106 ▲3 | 2.03 ▼0.01 | 35.51 ▼0.41 | 36.70 ▼0.25 |
Add New Post /wp-admin/post-new.php | 1,536 ▲5 | 23.17 ▲0.12 | 644.64 ▼45.06 | 59.53 ▼5.02 |
Media Library /wp-admin/upload.php | 1,406 ▲6 | 4.27 ▲0.11 | 95.77 ▼11.35 | 42.95 ▼2.71 |
Arastoo CPT /wp-admin/options-general.php?page=arastoo-cpt | 861 | 2.06 | 26.30 | 46.65 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
- 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
Even though everything seems fine, this is not an exhaustive test
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
The following issues need your attention
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/arastoo-cpt/parts/cpt-register.php:126
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/arastoo-cpt/arastoo-cpt.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
4 plugin tags: simple custom post type, custom post type, cpt, easy
arastoo-cpt/arastoo-cpt.php Passed 13 tests
The principal PHP file in "Arastoo Custom Post Type" v. 1.0.2 is loaded by WordPress automatically on each request
78 characters long description:
Smart Plugin that can create upto two Custom Post Type. Settings > Arastoo CPT
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
No dangerous file extensions were detected127 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 27 | 26 | 119 |
JavaScript | 1 | 1 | 0 | 8 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.07 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
arastoo-cpt-options-settings.png | 40.74KB | 19.56KB | ▼ 52.00% |