Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.22MB] [CPU: ▲0.98ms] Passed 4 tests
Analyzing server-side resources used by Live News
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 45.83 ▲9.10 |
Dashboard /wp-admin | 3.57 ▲0.26 | 43.85 ▼0.96 |
Posts /wp-admin/edit.php | 3.69 ▲0.32 | 45.79 ▲0.86 |
Add New Post /wp-admin/post-new.php | 6.15 ▲0.26 | 84.57 ▼0.65 |
Media Library /wp-admin/upload.php | 3.50 ▲0.26 | 36.79 ▲4.66 |
Sliding News /wp-admin/admin.php?page=daextlnl-sliding | 3.81 | 38.19 |
Featured News /wp-admin/admin.php?page=daextlnl-featured | 3.72 | 35.85 |
Export to Pro /wp-admin/admin.php?page=daextlnl-export-to-pro | 3.46 | 30.59 |
News Tickers /wp-admin/admin.php?page=daextlnl-tickers | 4.52 | 39.52 |
Pro Version /wp-admin/admin.php?page=daextlnl-pro-version | 3.47 | 30.96 |
Help /wp-admin/admin.php?page=daextlnl-help | 3.46 | 31.03 |
Options /wp-admin/admin.php?page=daextlnl-options | 3.47 | 30.46 |
Server storage [IO: ▲0.74MB] [DB: ▲0.01MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 62 new files
Database: 3 new tables, 11 new options
New tables |
---|
wp_daextlnl_sliding_news |
wp_daextlnl_featured_news |
wp_daextlnl_tickers |
New WordPress options |
---|
daextlnl_database_version |
daextlnl_detect_url_mode |
theysaidso_admin_options |
daextlnl_featured_menu_capability |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
daextlnl_tickers_menu_capability |
daextlnl_sliding_menu_capability |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Live News
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,919 ▲133 | 14.57 ▲0.35 | 28.88 ▲27.16 | 39.01 ▼4.48 |
Dashboard /wp-admin | 2,232 ▲62 | 5.55 ▼0.06 | 84.39 ▼12.27 | 34.82 ▼5.31 |
Posts /wp-admin/edit.php | 2,143 ▲43 | 2.08 ▲0.12 | 35.58 ▲1.24 | 28.62 ▼10.36 |
Add New Post /wp-admin/post-new.php | 1,558 ▲27 | 23.50 ▲0.35 | 624.53 ▼34.44 | 52.02 ▼7.76 |
Media Library /wp-admin/upload.php | 1,443 ▲46 | 4.25 ▲0.07 | 94.99 ▼4.21 | 37.68 ▼5.72 |
Sliding News /wp-admin/admin.php?page=daextlnl-sliding | 1,055 | 3.42 | 39.56 | 25.99 |
Featured News /wp-admin/admin.php?page=daextlnl-featured | 872 | 1.80 | 26.04 | 23.28 |
Export to Pro /wp-admin/admin.php?page=daextlnl-export-to-pro | 844 | 2.01 | 23.47 | 28.13 |
News Tickers /wp-admin/admin.php?page=daextlnl-tickers | 3,261 | 4.81 | 110.61 | 78.35 |
Pro Version /wp-admin/admin.php?page=daextlnl-pro-version | 876 | 2.02 | 23.77 | 29.17 |
Help /wp-admin/admin.php?page=daextlnl-help | 861 | 2.15 | 23.88 | 27.14 |
Options /wp-admin/admin.php?page=daextlnl-options | 954 | 2.00 | 31.59 | 31.14 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- The uninstall procedure has failed, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
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 | 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
- 7× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/live-news-lite/admin/view/featured.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/live-news-lite/admin/view/help.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/live-news-lite/admin/view/tickers.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/live-news-lite/admin/view/options.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/live-news-lite/admin/view/sliding.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/live-news-lite/admin/view/export_to_pro.php:8
- > PHP Fatal error
Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/live-news-lite/admin/view/pro_version.php:8
- > 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 issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that need to be fixed:
- Tags: Please reduce the number of tags, currently 12 tag instead of maximum 10
live-news-lite/init.php 85% from 13 tests
The main file in "Live News" v. 1.07 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: Keep the plugin description shorter than 140 characters (currently 187 characters long)
- Main file name: It is recommended to name the main PHP file as the plugin slug ("live-news-lite.php" instead of "init.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
Good job! No executable or dangerous file extensions detected11,926 lines of code in 42 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 15 | 1,163 | 845 | 6,669 |
PHP | 14 | 1,061 | 742 | 3,763 |
CSS | 12 | 222 | 61 | 1,475 |
Markdown | 1 | 4 | 0 | 19 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 2.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 70 | |
▷ Static methods | 7 | 10.00% |
▷ Public methods | 62 | 88.57% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 8 | 11.43% |
Functions | 1 | |
▷ Named functions | 1 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
17 PNG files occupy 0.10MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
public/assets/img/close-button.png | 0.25KB | 0.35KB | 0.00% |
admin/assets/img/update.png | 15.47KB | 0.51KB | ▼ 96.70% |
admin/assets/img/help-f7f7f7.png | 15.86KB | 0.59KB | ▼ 96.25% |
admin/assets/img/trash.png | 1.11KB | 0.19KB | ▼ 82.81% |
admin/assets/img/edit-hover.png | 1.30KB | 0.33KB | ▼ 74.47% |