Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.40MB] [CPU: ▲5.70ms] Passed 4 tests
Server-side resources used by Instant Post Types
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.81 ▲0.35 | 54.25 ▲2.71 |
Dashboard /wp-admin | 3.79 ▲0.49 | 55.63 ▲2.18 |
Posts /wp-admin/edit.php | 3.81 ▲0.46 | 58.29 ▲8.67 |
Add New Post /wp-admin/post-new.php | 6.26 ▲0.37 | 103.55 ▲9.25 |
Media Library /wp-admin/upload.php | 3.65 ▲0.42 | 44.47 ▲10.09 |
Server storage [IO: ▲1.88MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 106 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_cpt_pc_custom_post_types |
wp_cpt_pc_custom_taxonomies |
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
CPT_PC_plugin_version |
CPT_PC_db_version |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Instant Post Types
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,973 ▲187 | 14.95 ▲0.58 | 2.92 ▲0.86 | 47.06 ▲2.59 |
Dashboard /wp-admin | 2,376 ▲199 | 6.70 ▲1.10 | 130.40 ▲40.53 | 61.96 ▲21.79 |
Posts /wp-admin/edit.php | 2,306 ▲206 | 3.67 ▲1.63 | 79.38 ▲33.60 | 91.10 ▲52.83 |
Add New Post /wp-admin/post-new.php | 1,687 ▲161 | 22.11 ▼1.40 | 700.33 ▲22.86 | 49.45 ▼14.91 |
Media Library /wp-admin/upload.php | 1,583 ▲183 | 4.88 ▲0.69 | 128.83 ▲22.26 | 50.50 ▲4.16 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_cpt_pc_custom_post_types
- wp_cpt_pc_custom_taxonomies
- Zombie WordPress options were found after uninstall: 8 options
- theysaidso_admin_options
- CPT_PC_db_version
- CPT_PC_plugin_version
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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
The following issues need your attention
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/instant-post-types/i18n.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: post, custom taxonomies, cpt, custom post type, custom taxonomy...
instant-post-types/instant-post-types.php Passed 13 tests
The main PHP script in "Instant Post Types" version 0.8.1 is automatically included on every request by WordPress
61 characters long description:
Create custom post types, custom taxonomies and custom fields
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 plugin10,272 lines of code in 85 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
Sass | 40 | 848 | 588 | 4,737 |
CSS | 4 | 529 | 18 | 2,803 |
PHP | 38 | 541 | 1,173 | 2,730 |
JavaScript | 3 | 0 | 10 | 2 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 12.07 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 32.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 3 | 20.00% |
▷ Concrete classes | 12 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 122 | |
▷ Static methods | 35 | 28.69% |
▷ Public methods | 98 | 80.33% |
▷ Protected methods | 11 | 9.02% |
▷ Private methods | 13 | 10.66% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 2 | 28.57% |
▷ Class constants | 5 | 71.43% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin