Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.13MB] [CPU: ▼4.19ms] Passed 4 tests
Analyzing server-side resources used by Content Blocks (Custom Post Widget)
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 35.61 ▼0.32 |
Dashboard /wp-admin | 3.42 ▲0.11 | 46.22 ▼6.18 |
Posts /wp-admin/edit.php | 3.53 ▲0.17 | 46.34 ▼5.09 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 82.13 ▼5.16 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 34.81 ▲2.43 |
Add Content Block /wp-admin/post-new.php?post_type=content_block | 6.09 | 76.74 |
Content Blocks /wp-admin/edit.php?post_type=content_block | 3.38 | 40.49 |
Server storage [IO: ▲0.29MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 37 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_custom_post_widget |
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Content Blocks (Custom Post Widget)
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,858 ▲97 | 14.29 ▼0.06 | 1.58 ▲0.00 | 38.12 ▼0.88 |
Dashboard /wp-admin | 2,258 ▲81 | 5.51 ▼0.08 | 81.07 ▼22.41 | 35.65 ▼11.19 |
Posts /wp-admin/edit.php | 2,163 ▲63 | 2.00 ▲0.02 | 34.14 ▼5.11 | 34.15 ▼6.13 |
Add New Post /wp-admin/post-new.php | 1,590 ▲62 | 23.31 ▲0.17 | 664.61 ▼13.08 | 53.52 ▼2.94 |
Media Library /wp-admin/upload.php | 1,469 ▲69 | 4.23 ▲0.02 | 93.90 ▼16.96 | 42.01 ▼5.44 |
Add Content Block /wp-admin/post-new.php?post_type=content_block | 1,588 | 16.73 | 869.82 | 40.74 |
Content Blocks /wp-admin/edit.php?post_type=content_block | 1,107 | 1.93 | 30.57 | 29.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
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_custom_post_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-post-widget/post-type.php:35
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/custom-post-widget/widget.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-post-widget/custom-post-widget.php:35
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/custom-post-widget/shortcode.php:82
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-post-widget/meta-box.php:8
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Screenshots: These screenshots require images: #1 (After activating the plugin a new post type called 'Content Blocks' is added.), #2 (The widget has a select box to choose the content block. Click on the 'Edit Content Block' link to edit the selected Content Block custom post.), #3 (You will find a button above the WYSIWYG editor that allows you to insert the content block using the shortcode.), #4 (After clicking the 'Add Content Block' button you can select a content block and insert the shortcode in the content area.)
custom-post-widget/custom-post-widget.php Passed 13 tests
"Content Blocks (Custom Post Widget)" version 3.2.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
94 characters long description:
Show the content of a custom post of the type 'content_block' in a widget or with a shortcode.
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
No dangerous file extensions were detected1,917 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 11 | 567 | 1,035 | 1,506 |
PHP | 6 | 59 | 48 | 382 |
CSS | 1 | 0 | 0 | 17 |
JavaScript | 2 | 3 | 6 | 12 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 19.00 |
▷ Minimum class complexity | 19.00 |
▷ Maximum class complexity | 19.00 |
Average method complexity | 5.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 17 | 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
PNG files should be compressed to save space and minimize bandwidth usage
4 PNG files occupy 0.10MB with 0.06MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 12.94KB | 5.41KB | ▼ 58.22% |
screenshot-4.png | 16.17KB | 8.02KB | ▼ 50.38% |
screenshot-2.png | 15.22KB | 6.00KB | ▼ 60.59% |
screenshot-1.png | 55.00KB | 20.23KB | ▼ 63.21% |