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.60MB] [CPU: ▼284.02ms] Passed 4 tests
A check of server-side resources used by PixTypes
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.15 ▲0.63 | 67.18 ▲17.64 |
Dashboard /wp-admin | 3.99 ▲0.58 | 42.43 ▲8.63 |
Posts /wp-admin/edit.php | 4.29 ▲0.65 | 44.80 ▲5.77 |
Add New Post /wp-admin/post-new.php | 7.53 ▲0.55 | 101.36 ▼1,157.48 |
Media Library /wp-admin/upload.php | 3.94 ▲0.64 | 30.54 ▲6.99 |
All Projects /wp-admin/edit.php?post_type=pix_portfolio | 3.99 | 30.42 |
Gallery Categories /wp-admin/edit-tags.php?taxonomy=pix_gallery_categories&post_type=pix_gallery | 3.94 | 30.51 |
All Galleries /wp-admin/edit.php?post_type=pix_gallery | 3.99 | 30.58 |
Add New /wp-admin/post-new.php?post_type=pix_gallery | 4.27 | 53.25 |
PixTypes /wp-admin/options-general.php?page=pixtypes | 4.00 | 29.35 |
Add New /wp-admin/post-new.php?post_type=pix_portfolio | 4.32 | 52.14 |
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=pix_portfolio_categories&post_type=pix_portfolio | 3.94 | 27.46 |
Server storage [IO: ▲1.64MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 225 new files
Database: no new tables, 1 new option
New WordPress options |
---|
pixtypes_settings |
Browser metrics Passed 4 tests
This is an overview of browser requirements for PixTypes
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,888 ▲134 | 15.84 ▲0.13 | 6.27 ▼0.23 | 2.90 ▲0.37 |
Dashboard /wp-admin | 2,971 ▲117 | 6.13 ▼0.06 | 119.80 ▼13.93 | 161.00 ▲1.77 |
Posts /wp-admin/edit.php | 2,774 ▲83 | 3.25 ▲0.00 | 63.12 ▼0.63 | 143.26 ▼1.93 |
Add New Post /wp-admin/post-new.php | 1,815 ▲154 | 22.32 ▲6.79 | 439.95 ▲20.92 | 165.27 ▲8.14 |
Media Library /wp-admin/upload.php | 1,784 ▲89 | 5.53 ▲0.01 | 140.91 ▼14.97 | 196.35 ▼0.89 |
All Projects /wp-admin/edit.php?post_type=pix_portfolio | 1,465 | 2.93 | 60.69 | 114.70 |
Gallery Categories /wp-admin/edit-tags.php?taxonomy=pix_gallery_categories&post_type=pix_gallery | 1,708 | 2.79 | 57.20 | 115.49 |
All Galleries /wp-admin/edit.php?post_type=pix_gallery | 1,468 | 2.96 | 61.01 | 111.86 |
Add New /wp-admin/post-new.php?post_type=pix_gallery | 2,640 | 6.54 | 103.93 | 137.37 |
PixTypes /wp-admin/options-general.php?page=pixtypes | 1,126 | 2.44 | 53.78 | 110.43 |
Add New /wp-admin/post-new.php?post_type=pix_portfolio | 3,295 | 10.27 | 200.92 | 205.29 |
Portfolio Categories /wp-admin/edit-tags.php?taxonomy=pix_portfolio_categories&post_type=pix_portfolio | 1,705 | 2.78 | 54.62 | 111.06 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 1 option in the database
- pixtypes_settings
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/pixtypes/views/public.php
- 18× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_media() in wp-content/plugins/pixtypes/features/metaboxes/fields/gallery.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/pixtypes/settings/post_types.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_media() in wp-content/plugins/pixtypes/features/metaboxes/fields/image.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function wpgrade_display_row_controls() in wp-content/plugins/pixtypes/features/metaboxes/fields/portfolio-gallery.php:23
- > PHP Notice
Trying to get property 'post_content' of non-object in wp-content/plugins/pixtypes/features/metaboxes/fields/pix_builder.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/pixtypes/settings/taxonomies.php:11
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/pixtypes/features/metaboxes/fields/pix_builder.php on line 11
- > PHP Fatal error
Uncaught Error: Class 'pixtypes' not found in wp-content/plugins/pixtypes/views/admin.php:15
- > PHP Notice
Undefined variable: meta in wp-content/plugins/pixtypes/features/metaboxes/fields/portfolio-gallery.php on line 17
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_enqueue_media() in wp-content/plugins/pixtypes/features/metaboxes/fields/playlist.php:7
- > 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 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
5 plugin tags: builder, metadata, gallery, post-types, custom
pixtypes/pixtypes.php Passed 13 tests
"PixTypes" version 1.4.14's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
55 characters long description:
Custom post types and meta-boxes needed by your themes.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin22,952 lines of code in 175 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 65 | 1,839 | 1,960 | 7,475 |
CSS | 18 | 1,661 | 159 | 6,389 |
Sass | 17 | 739 | 126 | 4,417 |
PHP | 54 | 857 | 1,355 | 3,526 |
SVG | 6 | 0 | 2 | 460 |
Markdown | 6 | 116 | 0 | 456 |
JSON | 5 | 0 | 0 | 159 |
Bourne Shell | 1 | 24 | 0 | 55 |
Ruby | 3 | 7 | 16 | 15 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
These items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 167)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.51 |
Average class complexity | 24.44 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 272.00 |
Average method complexity | 4.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 167.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 7 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 142 | |
▷ Static methods | 30 | 21.13% |
▷ Public methods | 125 | 88.03% |
▷ Protected methods | 17 | 11.97% |
▷ Private methods | 0 | 0.00% |
Functions | 31 | |
▷ Named functions | 31 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 7 | |
▷ Global constants | 7 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
35 compressed PNG files occupy 0.06MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
features/metaboxes/images/row-versions/v8.png | 0.23KB | 0.23KB | 0.00% |
features/metaboxes/images/row-versions/v7.png | 0.24KB | 0.25KB | 0.00% |
features/metaboxes/images/ui-icons_888888_256x240.png | 3.62KB | 4.11KB | 0.00% |
features/metaboxes/images/ui-bg_glass_75_e6e6e6_1x400.png | 0.11KB | 0.14KB | 0.00% |
features/metaboxes/images/ui-icons_cd0a0a_256x240.png | 3.62KB | 4.11KB | 0.00% |