Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼4.42ms] Passed 4 tests
Server-side resources used by Widget Pagination
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 23.25 ▼12.39 |
Dashboard /wp-admin | 3.40 ▲0.10 | 44.00 ▲0.14 |
Posts /wp-admin/edit.php | 3.51 ▲0.16 | 50.72 ▲4.41 |
Add New Post /wp-admin/post-new.php | 6.00 ▲0.11 | 81.79 ▼6.87 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 34.08 ▲1.43 |
Widget Paginaton /wp-admin/themes.php?page=widget-pagination | 3.66 | 31.91 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 28 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
Widget Pagination: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,938 ▲192 | 13.79 ▼0.89 | 5.27 ▲3.75 | 39.73 ▲2.31 |
Dashboard /wp-admin | 2,231 ▲39 | 5.20 ▲0.26 | 105.49 ▲0.69 | 37.75 ▼6.17 |
Posts /wp-admin/edit.php | 2,095 ▲3 | 2.34 ▲0.31 | 35.71 ▼2.98 | 33.87 ▼1.41 |
Add New Post /wp-admin/post-new.php | 1,537 ▲1 | 23.42 ▲0.34 | 650.36 ▲33.79 | 37.83 ▼13.65 |
Media Library /wp-admin/upload.php | 1,411 ▲23 | 4.25 ▲0.05 | 89.42 ▼10.28 | 39.98 ▼2.70 |
Widget Paginaton /wp-admin/themes.php?page=widget-pagination | 3,142 | 2.74 | 85.94 | 46.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_theysaidso_widget
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 8 occurences, only the last one shown
- > GET request to /wp-admin/themes.php?page=widget-pagination
- > Notice in wp-content/plugins/widget-pagination/admin/partials/widget-pagination-admin-display.php+181
Trying to access array offset on value of type bool
SRP 0% 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 take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/widget-pagination/public/partials/widget-pagination-public-display.php
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/widget-pagination/admin/partials/widget-pagination-admin-display.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
- Tags: Please delete some tags, you are using 14 tag instead of maximum 10
widget-pagination/widget-pagination.php Passed 13 tests
Analyzing the main PHP file in "Widget Pagination" version 1.0.0
139 characters long description:
This plugin lets you add a styleable pagination for the widgets Archives, Categories, Links, Meta, Pages, Recent Posts and Recent Comments.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin1,904 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 266 | 777 | 1,269 |
PO File | 2 | 164 | 537 | 399 |
CSS | 2 | 19 | 9 | 141 |
JavaScript | 2 | 29 | 78 | 95 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.70 |
Average class complexity | 7.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 2.66 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 20.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 32 | |
▷ Static methods | 2 | 6.25% |
▷ Public methods | 25 | 78.12% |
▷ Protected methods | 1 | 3.12% |
▷ Private methods | 6 | 18.75% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/legend.png | 3.20KB | 1.89KB | ▼ 40.97% |