Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼0.84ms] Passed 4 tests
This is a short check of server-side resources used by WP All Post Type Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 41.92 ▲0.87 |
Dashboard /wp-admin | 3.38 ▲0.08 | 50.05 ▲1.04 |
Posts /wp-admin/edit.php | 3.50 ▲0.14 | 48.60 ▼5.97 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.10 | 98.81 ▲0.72 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 37.71 ▲1.98 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_wpaptw-all-post-type-widget-posts |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP All Post Type Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.18 ▼1.12 | 1.76 ▲0.07 | 44.35 ▼0.57 |
Dashboard /wp-admin | 2,202 ▲14 | 5.79 ▼0.07 | 101.48 ▼12.72 | 35.78 ▼8.39 |
Posts /wp-admin/edit.php | 2,091 ▲2 | 2.02 ▲0.01 | 35.36 ▼7.73 | 32.27 ▼11.79 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.26 ▼0.11 | 595.71 ▼95.91 | 52.01 ▲1.79 |
Media Library /wp-admin/upload.php | 1,393 ▲14 | 4.29 ▲0.08 | 98.86 ▲0.54 | 46.58 ▼0.28 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/wp-all-post-type-widget/wp-all-post-type-widget.php+37
Non-static method WPAPTW_Deactivator::deactivate() should not be called statically
- This plugin does not fully uninstall, leaving 7 options in the database
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- widget_wpaptw-all-post-type-widget-posts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
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 everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-all-post-type-widget/classes/class-widget.php:3
- > 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
Often overlooked, readme.txt is one of the most important files in your plugin
4 plugin tags: wp all post type widget, custom post type widget, custom taxonomy post, wordpress all post type widget
wp-all-post-type-widget/wp-all-post-type-widget.php Passed 13 tests
The entry point to "WP All Post Type Widget" version 1.0.4 is a PHP file that has certain tags in its header comment area
59 characters long description:
Display post type and his category base post in your widget
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin340 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 88 | 111 | 313 |
CSS | 1 | 0 | 0 | 18 |
JavaScript | 1 | 0 | 0 | 9 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 9.83 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 52.00 |
Average method complexity | 3.04 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.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 | 26 | |
▷ Static methods | 1 | 3.85% |
▷ Public methods | 20 | 76.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 23.08% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
PNG images were not found in this plugin