Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.29MB] [CPU: ▼8.39ms] Passed 4 tests
This is a short check of server-side resources used by Popular Posts by Webline
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.76 ▲0.29 | 41.32 ▼0.57 |
Dashboard /wp-admin | 3.60 ▲0.26 | 50.73 ▼16.03 |
Posts /wp-admin/edit.php | 3.72 ▲0.36 | 53.39 ▼0.00 |
Add New Post /wp-admin/post-new.php | 6.18 ▲0.30 | 91.73 ▼16.95 |
Media Library /wp-admin/upload.php | 3.52 ▲0.30 | 40.20 ▲2.21 |
Popular Posts - By Webline /wp-admin/options-general.php?page=wli-popular-posts-by-webline | 3.52 | 47.78 |
Server storage [IO: ▲0.14MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
wli_popular_posts_settings |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Popular Posts by Webline
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,936 ▲175 | 13.54 ▼0.72 | 5.71 ▲3.99 | 39.46 ▼1.99 |
Dashboard /wp-admin | 2,219 ▲15 | 5.85 ▼0.10 | 108.33 ▼5.95 | 38.36 ▼2.52 |
Posts /wp-admin/edit.php | 2,114 ▲11 | 1.98 ▼0.03 | 41.16 ▼0.12 | 36.74 ▼0.27 |
Add New Post /wp-admin/post-new.php | 1,529 ▼19 | 23.56 ▲0.37 | 604.08 ▼62.67 | 52.31 ▼10.47 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.26 ▲0.06 | 98.29 ▼1.39 | 43.17 ▼5.81 |
Popular Posts - By Webline /wp-admin/options-general.php?page=wli-popular-posts-by-webline | 1,934 | 4.00 | 78.49 | 37.56 |
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
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- wli_popular_posts_settings
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test
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
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/popular-posts-by-webline/admin/class/hook.php:11
- > PHP Warning
require_once(ABSPATHwp-admin/includes/template.php): failed to open stream: No such file or directory in wp-content/plugins/popular-posts-by-webline/admin/class/walker.php on line 4
- > PHP Fatal error
require_once(): Failed opening required 'ABSPATHwp-admin/includes/template.php' (include_path='.:/usr/share/php') in wp-content/plugins/popular-posts-by-webline/admin/class/walker.php on line 4
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/popular-posts-by-webline/admin/class/walker.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/popular-posts-by-webline/admin/class/popular-posts.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 90% 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:
- Screenshots: These screenshots have no corresponding images in /assets: #13 (Frontend widget to display populat products slider), #14 (Frontend shortcode to display popular products listing), #15 (Frontend shortcode to display popular posts slider)
popular-posts-by-webline/popularposts-by-webline.php 85% from 13 tests
The main PHP file in "Popular Posts by Webline" ver. 1.0.7 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
- Description: Please don't use more than 140 characters for the plugin description (currently 143 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("popular-posts-by-webline.php" instead of "popularposts-by-webline.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Everything looks great! No dangerous files found in this plugin1,666 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 237 | 268 | 1,254 |
CSS | 4 | 45 | 5 | 354 |
JavaScript | 3 | 11 | 6 | 45 |
SVG | 1 | 1 | 0 | 13 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 54.33 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 107.00 |
Average method complexity | 4.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 48.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 42 | |
▷ Static methods | 1 | 2.38% |
▷ Public methods | 42 | 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 | 7 | |
▷ Global constants | 7 | 100.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
4 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/assets/images/logo.png | 0.24KB | 0.25KB | 0.00% |
admin/assets/images/date_icon.png | 1.47KB | 0.87KB | ▼ 41.32% |
admin/assets/images/view_icon.png | 0.53KB | 0.35KB | ▼ 34.92% |
admin/assets/images/comment_icon.png | 0.64KB | 0.39KB | ▼ 39.79% |