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.04MB] [CPU: ▼4.67ms] Passed 4 tests
A check of server-side resources used by XE Advanced Recent Posts Widget
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 40.38 ▼1.44 |
Dashboard /wp-admin | 3.36 ▲0.01 | 49.56 ▼12.00 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 52.24 ▲1.27 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 99.05 ▼6.50 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 37.16 ▲2.00 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 8 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
db_upgraded |
widget_xe-advanced-recent-posts_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for XE Advanced Recent Posts Widget
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲60 | 14.47 ▼0.18 | 1.88 ▲0.10 | 42.84 ▲0.30 |
Dashboard /wp-admin | 2,213 ▲28 | 5.90 ▲0.04 | 98.93 ▼3.22 | 40.44 ▼0.60 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.04 ▼0.00 | 39.80 ▲5.75 | 36.34 ▲0.62 |
Add New Post /wp-admin/post-new.php | 1,527 ▼3 | 18.45 ▲0.14 | 660.37 ▲29.81 | 57.14 ▲7.00 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.16 ▼0.06 | 95.87 ▼8.81 | 43.53 ▼4.09 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- db_upgraded
- widget_xe-advanced-recent-posts_widget
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please take a closer look at the following
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/xe-advanced-recent-posts-widget/xe-advanced-recent-posts-widget.php:35
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 81% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
- Tags: There are too many tags (11 tag instead of maximum 10)
- Donate link: Please fix this invalid url: ""
- Screenshots: Please add images for these screenshots: #1 (Widget Options), #2 (Viewing the Widget)
xe-advanced-recent-posts-widget/xe-advanced-recent-posts-widget.php Passed 13 tests
The primary PHP file in "XE Advanced Recent Posts Widget" version 1.0.0 is used by WordPress to initiate all plugin functionality
31 characters long description:
XE Advanced Recent Posts Widget
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 detected225 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 63 | 49 | 195 |
JavaScript | 1 | 2 | 0 | 16 |
CSS | 2 | 7 | 0 | 14 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 38.00 |
▷ Minimum class complexity | 38.00 |
▷ Maximum class complexity | 38.00 |
Average method complexity | 10.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.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 | 3 | |
▷ Named functions | 3 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
3 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 7.14KB | 6.16KB | ▼ 13.78% |
screenshot-1.png | 15.46KB | 14.61KB | ▼ 5.52% |
images/imagenotfound.png | 3.09KB | 0.26KB | ▼ 91.56% |