Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.77ms] Passed 4 tests
An overview of server-side resources used by Post Type Transfer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 39.97 ▼3.61 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.54 ▼2.72 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 48.40 ▲1.93 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 95.21 ▼6.66 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 35.57 ▲2.33 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for Post Type Transfer
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲65 | 13.24 ▼1.06 | 1.84 ▲0.09 | 45.67 ▼2.47 |
Dashboard /wp-admin | 2,203 ▲12 | 5.83 ▲0.94 | 94.47 ▼9.51 | 38.28 ▼3.45 |
Posts /wp-admin/edit.php | 2,137 ▲48 | 2.03 ▲0.01 | 40.30 ▲6.18 | 35.49 ▲3.26 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.31 ▲0.06 | 642.13 ▼8.31 | 54.64 ▲2.92 |
Media Library /wp-admin/upload.php | 1,391 ▼0 | 4.18 ▼0.02 | 94.47 ▼2.46 | 41.36 ▲0.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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 fix the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Post_Type_Transfer' not found in wp-content/plugins/post-type-transfer/lib/block/class-ptt-guntenberg-metabox.php:5
- > PHP Fatal error
Uncaught Error: Class 'Post_Type_Transfer' not found in wp-content/plugins/post-type-transfer/admin/class-quick-edit.php:5
- > 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 97% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: A description for screenshot #3 is missing in post-type-transfer/assets to your readme.txt
post-type-transfer/post-type-transfer.php Passed 13 tests
"Post Type Transfer" version 1.4's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
83 characters long description:
This plugin will allow user to change post type to other public post types or page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Everything looks great! No dangerous files found in this plugin312 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 30 | 126 | 214 |
JavaScript | 3 | 11 | 17 | 65 |
CSS | 2 | 2 | 5 | 33 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 24.00 |
Average method complexity | 2.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected