Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.47MB] [CPU: ▼5.93ms] Passed 4 tests
This is a short check of server-side resources used by Trending/Popular Post Slider and Widget
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.88 ▲0.42 | 36.18 ▼6.00 |
Dashboard /wp-admin | 3.84 ▲0.49 | 47.87 ▼21.27 |
Posts /wp-admin/edit.php | 3.89 ▲0.53 | 52.48 ▲4.23 |
Add New Post /wp-admin/post-new.php | 6.39 ▲0.50 | 95.50 ▲0.99 |
Media Library /wp-admin/upload.php | 3.70 ▲0.47 | 36.47 ▲2.56 |
Server storage [IO: ▲0.81MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 78 new files
Database: no new tables, 11 new options
New WordPress options |
---|
wpos_anylc_site_uid |
widget_theysaidso_widget |
wtpsw_plugin_version |
widget_recent-comments |
can_compress_scripts |
wtpsw_options |
widget_wtpsw-post-list-widget |
theysaidso_admin_options |
db_upgraded |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Trending/Popular Post Slider and Widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,653 ▼1,094 | 10.54 ▼3.81 | 5.51 ▲3.76 | 17.50 ▼26.11 |
Dashboard /wp-admin | 2,225 ▲50 | 5.67 ▼0.01 | 101.13 ▼16.60 | 53.48 ▲8.17 |
Posts /wp-admin/edit.php | 2,126 ▲26 | 2.03 ▲0.02 | 40.66 ▼2.06 | 37.92 ▲0.62 |
Add New Post /wp-admin/post-new.php | 6,223 ▲4,688 | 26.12 ▲2.85 | 910.21 ▲316.42 | 53.51 ▼6.16 |
Media Library /wp-admin/upload.php | 1,417 ▲20 | 4.27 ▲0.03 | 100.77 ▲1.21 | 39.72 ▼0.69 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 11 options in the database
- theysaidso_admin_options
- wtpsw_plugin_version
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- widget_wtpsw-post-list-widget
- can_compress_scripts
- wtpsw_options
- wpos_anylc_site_uid
- wpos_anylc_redirect
- ...
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
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 issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: Too many tags (18 tag instead of maximum 10); only the first 5 tags are used in your directory listing
wp-trending-post-slider-and-widget/wp-trending-post-slider-widget.php 85% from 13 tests
Analyzing the main PHP file in "Trending/Popular Post Slider and Widget" version 1.8
Please take the time to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-trending-post-slider-and-widget.php" instead of "wp-trending-post-slider-widget.php")
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
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
Success! There were no dangerous files found in this plugin3,789 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 30 | 789 | 1,020 | 3,038 |
JavaScript | 7 | 121 | 68 | 386 |
CSS | 6 | 14 | 9 | 187 |
PO File | 1 | 72 | 81 | 176 |
JSON | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.54 |
Average class complexity | 19.82 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 87.00 |
Average method complexity | 4.98 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 30.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 11 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 11 | 100.00% |
▷ Final classes | 2 | 18.18% |
Methods | 52 | |
▷ Static methods | 2 | 3.85% |
▷ Public methods | 48 | 92.31% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 4 | 7.69% |
Functions | 43 | |
▷ Named functions | 43 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 17 | |
▷ Global constants | 17 | 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
28 PNG files occupy 0.45MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/g-logo.png | 41.17KB | 14.04KB | ▼ 65.90% |
wpos-plugins/assets/images/utility-icon.png | 0.72KB | 0.82KB | 0.00% |
wpos-analytics/assets/images/icon.png | 9.48KB | 3.75KB | ▼ 60.49% |
assets/images/vc-icon.png | 5.24KB | 1.92KB | ▼ 63.42% |
assets/images/arrow-left.png | 1.15KB | 0.17KB | ▼ 85.11% |