Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▼0.00MB] [CPU: ▼933.37ms] Passed 4 tests
This is a short check of server-side resources used by AC Simple Post Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.74 ▼0.10 | 18.58 ▼11.87 |
Dashboard /wp-admin | 3.08 ▲0.03 | 42.31 ▲0.70 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 33.19 ▼6.68 |
Add New Post /wp-admin/post-new.php | 5.46 ▲0.14 | 1,368.31 ▼3,715.61 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 36.16 ▲6.65 |
Server storage [IO: ▲0.03MB] [DB: ▲0.71MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 15 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_ac_simple_post_widget |
Browser metrics Passed 4 tests
A check of browser resources used by AC Simple Post Widget
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,651 ▲45 | 16.03 ▲0.48 | 12.39 ▲5.15 | 49.13 ▲0.70 |
Dashboard /wp-admin | 2,927 ▲74 | 5.92 ▼0.02 | 147.51 ▲12.93 | 145.84 ▲52.57 |
Posts /wp-admin/edit.php | 2,695 ▼11 | 2.59 ▼0.10 | 61.84 ▼4.31 | 92.17 ▲1.42 |
Add New Post /wp-admin/post-new.php | 1,658 ▼193 | 18.53 ▲1.19 | 410.11 ▲45.92 | 124.81 ▲17.36 |
Media Library /wp-admin/upload.php | 1,701 ▼74 | 5.00 ▼0.01 | 181.06 ▲42.36 | 126.05 ▲17.76 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.71MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 1 option
- widget_ac_simple_post_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
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
- 10× PHP files trigger server errors when accessed directly:
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/ac-simple-post-widget/acsimplepostwidget.php on line 19
- > PHP Notice
Undefined variable: before_widget in wp-content/plugins/ac-simple-post-widget/inc/front-end.php on line 3
- > PHP Notice
Undefined variable: img_width in wp-content/plugins/ac-simple-post-widget/inc/front-end.php on line 13
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/ac-simple-post-widget/inc/widget-fields.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr_e() in wp-content/plugins/ac-simple-post-widget/inc/options-page-wrapper.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Query' not found in wp-content/plugins/ac-simple-post-widget/inc/front-end.php:22
- > PHP Notice
Undefined variable: img_height in wp-content/plugins/ac-simple-post-widget/inc/front-end.php on line 14
- > PHP Notice
Undefined variable: num_post in wp-content/plugins/ac-simple-post-widget/inc/front-end.php on line 18
- > PHP Notice
Undefined variable: post_type in wp-content/plugins/ac-simple-post-widget/inc/front-end.php on line 17
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/ac-simple-post-widget/acsimplepostwidget.php:84
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need your attention:
- Donate link: Please fix this invalid url: ""
ac-simple-post-widget/acsimplepostwidget.php 92% from 13 tests
The primary PHP file in "AC Simple Post Widget" version 1.0.0 is used by WordPress to initiate all plugin functionality
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("ac-simple-post-widget.php" instead of "acsimplepostwidget.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected560 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 140 | 78 | 227 |
XML | 5 | 0 | 0 | 186 |
Sass | 1 | 11 | 0 | 78 |
CSS | 2 | 11 | 9 | 69 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 15.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 15.00 |
Average method complexity | 4.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.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 | 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 1 test
Image compression Passed 1 test
Using a strong compression for your PNG files is a great way to speed-up your plugin
PNG images were not found in this plugin