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.04MB] [CPU: ▼6.75ms] Passed 4 tests
Analyzing server-side resources used by Custom Post Type Mapper - Register post ypes, taxonomies, meta boxes without coding
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 39.58 ▲1.30 |
Dashboard /wp-admin | 3.36 ▲0.01 | 45.76 ▼15.53 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 46.37 ▲0.76 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 84.11 ▼13.54 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 36.78 ▲2.26 |
Meta Fields /wp-admin/admin.php?page=meta-mapper | 3.29 | 33.10 |
CPT Mapper /wp-admin/admin.php?page=cpt-mapper | 3.29 | 30.75 |
Taxonomies /wp-admin/admin.php?page=taxonomy-mapper | 3.27 | 30.52 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
A check of browser resources used by Custom Post Type Mapper - Register post ypes, taxonomies, meta boxes without coding
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,845 ▲84 | 14.72 ▲0.36 | 1.89 ▲0.29 | 43.25 ▼1.78 |
Dashboard /wp-admin | 2,226 ▲45 | 5.61 ▼0.10 | 82.62 ▼21.05 | 42.13 ▲4.07 |
Posts /wp-admin/edit.php | 2,134 ▲34 | 2.04 ▲0.06 | 34.65 ▼0.70 | 30.23 ▼2.38 |
Add New Post /wp-admin/post-new.php | 1,553 ▲20 | 23.08 ▲0.33 | 657.24 ▼17.29 | 46.89 ▼14.80 |
Media Library /wp-admin/upload.php | 1,428 ▲28 | 4.20 ▲0.08 | 102.24 ▼11.17 | 44.69 ▼4.52 |
Meta Fields /wp-admin/admin.php?page=meta-mapper | 826 | 2.02 | 28.77 | 31.98 |
CPT Mapper /wp-admin/admin.php?page=cpt-mapper | 836 | 2.05 | 23.38 | 22.18 |
Taxonomies /wp-admin/admin.php?page=taxonomy-mapper | 835 | 2.04 | 24.34 | 22.85 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
Almost there! Just fix the following items
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/cpt-mapper/cpt-mapper.php
- 7× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cpt-mapper/fragments/admin-page-content.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/cpt-mapper/fragments/post-type-register.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/cpt-mapper/fragments/taxonomy-register.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cpt-mapper/fragments/admin-page-taxonomy-content.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/cpt-mapper/fragments/meta-callback.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/cpt-mapper/fragments/action-hooks.php:9
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/cpt-mapper/fragments/admin-page-meta-content.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% from 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
9 plugin tags: cms, custom post types, meta boxes, taxonomy, custom fields...
cpt-mapper/cpt-mapper.php 85% from 13 tests
The entry point to "Custom Post Type Mapper - Register post ypes, taxonomies, meta boxes without coding" version 0.0.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Description: Please keep the plugin description shorter than 140 characters (currently 144 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
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 detected818 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 76 | 38 | 642 |
CSS | 1 | 39 | 17 | 146 |
JavaScript | 1 | 9 | 0 | 30 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
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 | 13 | |
▷ Named functions | 13 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin