Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.22MB] [CPU: ▼306.37ms] Passed 4 tests
Server-side resources used by Advanced Posts Widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.28 | 56.58 ▲1.70 |
Dashboard /wp-admin | 3.63 ▲0.22 | 36.50 ▼2.90 |
Posts /wp-admin/edit.php | 3.86 ▲0.21 | 39.88 ▲3.70 |
Add New Post /wp-admin/post-new.php | 7.16 ▲0.19 | 96.09 ▼1,225.20 |
Media Library /wp-admin/upload.php | 3.57 ▲0.27 | 26.88 ▲0.91 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 20 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Advanced Posts Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,783 ▲61 | 15.98 ▲0.01 | 7.42 ▲1.38 | 2.59 ▲0.28 |
Dashboard /wp-admin | 2,883 ▲25 | 6.14 ▼0.10 | 116.18 ▼17.10 | 157.09 ▼5.97 |
Posts /wp-admin/edit.php | 2,690 ▼4 | 3.23 ▼0.01 | 64.67 ▲1.14 | 134.68 ▼7.41 |
Add New Post /wp-admin/post-new.php | 1,760 ▲99 | 21.41 ▲5.41 | 450.25 ▲17.98 | 159.96 ▲5.75 |
Media Library /wp-admin/upload.php | 1,700 ▲2 | 5.53 ▲0.04 | 140.32 ▼15.68 | 182.00 ▼8.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstaller ran successfully
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
Good news, no errors were detected
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 take a closer look at the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post() in wp-content/plugins/advanced-posts-widget/tpl/content-html5.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function get_post() in wp-content/plugins/advanced-posts-widget/tpl/content-xhtml.php:10
- > PHP Fatal error
Uncaught Error: Class 'Advanced_Posts_Widget_Fields' not found in wp-content/plugins/advanced-posts-widget/inc/widget-form.php:21
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: recent-posts, posts, widget, posts-widget, recent posts
advanced-posts-widget/apw.php 92% from 13 tests
The entry point to "Advanced Posts Widget" version 1.0 is a PHP file that has certain tags in its header comment area
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("advanced-posts-widget.php" instead of "apw.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
No dangerous file extensions were detected1,727 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 542 | 1,033 | 1,381 |
CSS | 2 | 36 | 1 | 193 |
JavaScript | 1 | 32 | 11 | 96 |
Markdown | 1 | 36 | 0 | 57 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 29.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 3.03 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 69 | |
▷ Static methods | 51 | 73.91% |
▷ Public methods | 69 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.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
No PNG images were found in this plugin