Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.38MB] [CPU: ▼9.84ms] Passed 4 tests
Server-side resources used by Simple Custom post type custom field
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.01 ▲0.55 | 44.52 ▼1.37 |
Dashboard /wp-admin | 3.71 ▲0.41 | 34.99 ▼13.80 |
Posts /wp-admin/edit.php | 3.96 ▲0.60 | 56.49 ▲2.63 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.09 | 81.07 ▼23.95 |
Media Library /wp-admin/upload.php | 3.71 ▲0.49 | 35.08 ▼0.24 |
Server storage [IO: ▲0.32MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 27 new files
Database: 7 new tables, 6 new options
New tables |
---|
wp_scck_content_type_fields_detail |
wp_scck_content_type_fields |
wp_scck_menu |
wp_scck_content_type |
wp_scck_content_type_fields_detail_tx |
wp_scck_content_type_fields_group_rel |
wp_scck_content_type_fields_group |
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Simple Custom post type custom field
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,832 ▲97 | 14.39 ▲0.02 | 1.63 ▼0.39 | 39.72 ▼5.66 |
Dashboard /wp-admin | 2,251 ▲63 | 6.17 ▲0.30 | 149.82 ▲44.93 | 83.32 ▲35.89 |
Posts /wp-admin/edit.php | 2,138 ▲49 | 3.02 ▲0.97 | 53.13 ▲11.93 | 36.53 ▲1.27 |
Add New Post /wp-admin/post-new.php | 6,550 ▲5,017 | 26.69 ▲3.55 | 967.42 ▲346.63 | 36.46 ▼17.43 |
Media Library /wp-admin/upload.php | 1,424 ▲36 | 5.42 ▲1.20 | 116.70 ▲19.01 | 78.74 ▲35.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- Zombie tables were found after uninstall: 7 tables
- wp_scck_content_type_fields_detail
- wp_scck_content_type_fields_group
- wp_scck_menu
- wp_scck_content_type_fields_group_rel
- wp_scck_content_type_fields
- wp_scck_content_type
- wp_scck_content_type_fields_detail_tx
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- 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 shallow check for 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: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 4× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'simple_cck_fields' not found in wp-content/plugins/simple-content-construction-kit/wp-simple-cck-content.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/simple-content-construction-kit/wp-simple-cck.php:15
- > PHP Fatal error
Uncaught Error: Class 'wp_simple_cck_build' not found in wp-content/plugins/simple-content-construction-kit/wp-simple-cck-settings.php:3
- > PHP Fatal error
Uncaught Error: Class 'simple_cck_fields_settings' not found in wp-content/plugins/simple-content-construction-kit/wp-simple-cck-fields.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% 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 to be fixed:
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== simple-content-construction-kit ===
) - Tags: Please delete some tags, you are using 20 tag instead of maximum 10
simple-content-construction-kit/wp-simple-cck.php 92% from 13 tests
The entry point to "Simple Custom post type custom field" version 1.0.3 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("simple-content-construction-kit.php" instead of "wp-simple-cck.php")
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
Good job! No executable or dangerous file extensions detected4,460 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 482 | 66 | 2,893 |
CSS | 3 | 84 | 74 | 1,567 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 45.33 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 82.00 |
Average method complexity | 3.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 25.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 97 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 97 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
17 PNG files occupy 0.14MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
theme/dark-hive/images/ui-bg_glass_40_ffc73d_1x400.png | 0.16KB | 0.16KB | ▼ 1.80% |
screenshot-2.png | 72.26KB | 27.54KB | ▼ 61.89% |
theme/dark-hive/images/ui-bg_highlight-hard_20_0972a5_1x100.png | 0.15KB | 0.15KB | 0.00% |
theme/dark-hive/images/ui-bg_flat_30_cccccc_40x100.png | 0.18KB | 0.08KB | ▼ 51.67% |
theme/dark-hive/images/ui-bg_highlight-soft_35_222222_1x100.png | 0.11KB | 0.18KB | 0.00% |