Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▼0.90MB] [CPU: ▼311.77ms] Passed 4 tests
Analyzing server-side resources used by Advanced Post Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.05 | 58.47 ▲8.67 |
Dashboard /wp-admin | 3.45 ▲0.04 | 34.68 ▲0.52 |
Posts /wp-admin/edit.php | 3.68 ▲0.04 | 40.01 ▲2.04 |
Add New Post /wp-admin/post-new.php | 3.27 ▼3.73 | 28.29 ▼1,249.15 |
Media Library /wp-admin/upload.php | 3.33 ▲0.04 | 24.81 ▼0.47 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 9 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_kindy_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Advanced Post Widget
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,797 ▲52 | 16.27 ▲0.57 | 6.53 ▲0.07 | 2.78 ▲0.67 |
Dashboard /wp-admin | 2,895 ▲34 | 6.02 ▼0.17 | 123.08 ▼18.32 | 166.47 ▲4.96 |
Posts /wp-admin/edit.php | 2,688 ▼0 | 3.24 ▲0.01 | 66.97 ▲2.73 | 146.14 ▲2.41 |
Add New Post /wp-admin/post-new.php | 1,722 ▲61 | 19.98 ▲4.36 | 395.75 ▼19.15 | 166.73 ▲8.64 |
Media Library /wp-admin/upload.php | 1,698 ▼3 | 5.48 ▼0.05 | 144.63 ▲10.21 | 188.61 ▼0.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 1 option
- widget_kindy_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means 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 items
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function the_permalink() in wp-content/plugins/advanced-post-widget/template/widget_6.php:43
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/advanced-post-widget/kindy_widget.php:11
- > PHP Fatal error
Uncaught Error: Call to undefined function the_permalink() in wp-content/plugins/advanced-post-widget/template/widget_1.php:44
- > PHP Fatal error
Uncaught Error: Call to undefined function the_permalink() in wp-content/plugins/advanced-post-widget/template/widget_2.php:43
- > PHP Fatal error
Uncaught Error: Call to undefined function the_permalink() in wp-content/plugins/advanced-post-widget/template/widget_3.php:43
- > PHP Fatal error
Uncaught Error: Call to undefined function the_permalink() in wp-content/plugins/advanced-post-widget/template/widget_4.php:43
- > PHP Notice
Undefined variable: c in wp-content/plugins/advanced-post-widget/template/widget_1.php on line 43
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 13 tag instead of maximum 10
advanced-post-widget/kindy_widget.php 77% from 13 tests
The principal PHP file in "Advanced Post Widget" v. 1.0 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("advanced-post-widget.php" instead of "kindy_widget.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin470 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 48 | 24 | 433 |
CSS | 1 | 0 | 0 | 37 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 21.00 |
▷ Minimum class complexity | 21.00 |
▷ Maximum class complexity | 21.00 |
Average method complexity | 3.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 7 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 7 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 5 | |
▷ Named functions | 5 | 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
PNG images were not found in this plugin