Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.04MB] [CPU: ▼0.95ms] Passed 4 tests
Server-side resources used by GS Posts Widget
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 37.31 ▼6.30 |
Dashboard /wp-admin | 3.34 ▲0.03 | 46.00 ▼4.31 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 50.14 ▲2.78 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 95.52 ▲4.03 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 37.90 ▲4.03 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
The plugin installed successfully
Filesystem: 13 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_gs-posts-widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for GS Posts Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 13.23 ▼1.44 | 1.76 ▼0.09 | 41.92 ▼9.26 |
Dashboard /wp-admin | 2,232 ▲44 | 5.83 ▼0.07 | 94.72 ▼18.78 | 38.82 ▼10.30 |
Posts /wp-admin/edit.php | 2,118 ▲32 | 2.10 ▲0.09 | 40.30 ▲4.42 | 37.79 ▲2.29 |
Add New Post /wp-admin/post-new.php | 1,552 ▲16 | 18.17 ▼5.01 | 605.44 ▼60.85 | 53.49 ▼6.98 |
Media Library /wp-admin/upload.php | 1,417 ▲29 | 4.26 ▲0.10 | 96.28 ▼13.78 | 42.72 ▼5.39 |
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
Please fix the following items
- This plugin does not fully uninstall, leaving 7 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_gs-posts-widget
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
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)
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Notice
Undefined variable: instance in wp-content/plugins/posts-widget/gspw-files/templates/gspwtemp4-grid-02A.php on line 9
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/posts-widget/gspw-files/templates/gspwtemp3-grid-01.php:17
- > PHP Notice
Undefined variable: instance in wp-content/plugins/posts-widget/gspw-files/templates/gspwtemp3-grid-01.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function add_image_size() in wp-content/plugins/posts-widget/gspw-posts-widget.php:23
- > PHP Notice
Undefined variable: gspw_query in wp-content/plugins/posts-widget/gspw-files/templates/gspwtemp4-grid-02A.php on line 17
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/posts-widget/gspw-files/templates/gspwtemp3-grid-01.php on line 9
- > PHP Notice
Undefined variable: gspw_query in wp-content/plugins/posts-widget/gspw-files/templates/gspwtemp3-grid-01.php on line 17
- > PHP Fatal error
Uncaught Error: Call to a member function have_posts() on null in wp-content/plugins/posts-widget/gspw-files/templates/gspwtemp4-grid-02A.php:17
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/posts-widget/gspw-files/templates/gspwtemp4-grid-02A.php on line 9
- > PHP Notice
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)
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: categories, posts, sidebar, recent posts, widget
posts-widget/gspw-posts-widget.php 77% from 13 tests
The main file in "GS Posts Widget" v. 1.2.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 437 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("posts-widget.php" instead of "gspw-posts-widget.php")
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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
Everything looks great! No dangerous files found in this plugin2,634 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 554 | 650 | 2,442 |
CSS | 2 | 5 | 3 | 167 |
JSON | 1 | 0 | 0 | 21 |
JavaScript | 1 | 1 | 0 | 4 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 53.60 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 100.00 |
Average method complexity | 3.51 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 62.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 93 | |
▷ Static methods | 1 | 1.08% |
▷ Public methods | 59 | 63.44% |
▷ Protected methods | 6 | 6.45% |
▷ Private methods | 28 | 30.11% |
Functions | 14 | |
▷ Named functions | 12 | 85.71% |
▷ Anonymous functions | 2 | 14.29% |
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
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
gspw-files/admin/css/icon-128x128.png | 5.04KB | 4.34KB | ▼ 13.92% |