Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲5.05MB] [CPU: ▲25.71ms] 50% from 4 tests
Server-side resources used by WordPress News Plugin - TopNewsWp
The following require your attention
- CPU: The total CPU usage must kept under 500.00ms (currently 1,655.64ms on /wp-admin/admin.php?page=wp-top-news)
- Extra RAM: Extra memory usage should kept under 5MB (currently 5.05MB on /wp-admin/admin.php?page=wp-top-news)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 8.89 ▲5.43 | 65.87 ▲16.37 |
Dashboard /wp-admin | 8.91 ▲5.61 | 79.35 ▲31.27 |
Posts /wp-admin/edit.php | 8.91 ▲5.56 | 82.14 ▲35.47 |
Add New Post /wp-admin/post-new.php | 9.48 ▲3.60 | 112.85 ▲22.02 |
Media Library /wp-admin/upload.php | 8.91 ▲5.68 | 68.25 ▲33.18 |
Usage & Tutorial /wp-admin/admin.php?page=wtn-get-help | 8.91 | 52.28 |
Manage Cache /wp-admin/admin.php?page=wtn-clear-cache | 8.91 | 53.98 |
API Settings /wp-admin/admin.php?page=wtn-api-settings | 8.91 | 51.15 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 8.91 | 61.33 |
General Settings /wp-admin/admin.php?page=wtn-settings | 8.91 | 50.78 |
WP Top News /wp-admin/admin.php?page=wp-top-news | 8.91 | 1,655.64 |
Server storage [IO: ▲4.41MB] [DB: ▲0.01MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 264 new files
Database: no new tables, 11 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
news_category_children |
theysaidso_admin_options |
db_upgraded |
fs_active_plugins |
fs_accounts |
fs_debug_mode |
default_term_news_category |
... |
Browser metrics Passed 4 tests
A check of browser resources used by WordPress News Plugin - TopNewsWp
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,008 ▲273 | 13.75 ▼0.65 | 4.90 ▲2.71 | 27.05 ▼17.94 |
Dashboard /wp-admin | 2,327 ▲136 | 4.98 ▲0.07 | 117.30 ▲2.62 | 45.80 ▲1.87 |
Posts /wp-admin/edit.php | 2,209 ▲117 | 2.28 ▲0.23 | 40.84 ▲1.39 | 39.12 ▲2.05 |
Add New Post /wp-admin/post-new.php | 1,600 ▲86 | 23.02 ▲5.54 | 677.38 ▼13.42 | 37.83 ▼11.43 |
Media Library /wp-admin/upload.php | 1,506 ▲121 | 4.45 ▲0.28 | 96.44 ▼6.18 | 44.91 ▲2.25 |
Usage & Tutorial /wp-admin/admin.php?page=wtn-get-help | 28 | 0.44 | 0.07 | 3.91 |
Manage Cache /wp-admin/admin.php?page=wtn-clear-cache | 28 | 0.44 | 0.07 | 3.81 |
API Settings /wp-admin/admin.php?page=wtn-api-settings | 28 | 0.44 | 0.08 | 4.17 |
Freemius Debug [v.2.5.10] /wp-admin/admin.php?page=freemius | 1,173 | 1.97 | 28.70 | 27.39 |
General Settings /wp-admin/admin.php?page=wtn-settings | 28 | 0.44 | 0.08 | 3.42 |
WP Top News /wp-admin/admin.php?page=wp-top-news | 4,417 | 9.81 | 303.69 | 145.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/wp-top-news/freemius/includes/class-freemius.php+8486
Undefined property: stdClass::$plugins
- Zombie WordPress options were found after uninstall: 11 options
- theysaidso_admin_options
- widget_recent-posts
- can_compress_scripts
- fs_debug_mode
- widget_recent-comments
- fs_accounts
- news_category_children
- default_term_news_category
- db_upgraded
- 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)
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
Congratulations! This plugin passed the SRP test
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
These are user-side errors you should fix
- > GET request to /wp-admin/admin.php?page=wtn-get-help
- > Network (severe)
wp-admin/admin.php?page=wtn-get-help - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=wtn-clear-cache
- > Network (severe)
wp-admin/admin.php?page=wtn-clear-cache - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=wtn-api-settings
- > Network (severe)
wp-admin/admin.php?page=wtn-api-settings - Failed to load resource: the server responded with a status of 403 (Forbidden)
- > GET request to /wp-admin/admin.php?page=wtn-settings
- > Network (severe)
wp-admin/admin.php?page=wtn-settings - Failed to load resource: the server responded with a status of 403 (Forbidden)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: There are too many tags (11 tag instead of maximum 10)
wp-top-news/wp-top-news.php Passed 13 tests
The main file in "WordPress News Plugin - TopNewsWp" v. 2.3.7 serves as a complement to information provided in readme.txt and as the entry point to the plugin
80 characters long description:
TopNewsWp plugin will display news, events, post etc. in your WordPress website.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin36,998 lines of code in 184 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 156 | 8,294 | 17,302 | 35,659 |
CSS | 18 | 163 | 46 | 897 |
JavaScript | 7 | 48 | 62 | 280 |
PO File | 1 | 60 | 62 | 148 |
SVG | 1 | 1 | 0 | 13 |
JSON | 1 | 0 | 0 | 1 |
PHP code 50% from 2 tests
An overview of cyclomatic complexity and code structure
These items need your attention
- Class cyclomatic complexity has to be reduced to less than 1000 (currently 3,073)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.62 |
Average class complexity | 74.48 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3,073.00 |
Average method complexity | 4.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 9 | |
Classes | 52 | |
▷ Abstract classes | 2 | 3.85% |
▷ Concrete classes | 50 | 96.15% |
▷ Final classes | 0 | 0.00% |
Methods | 1,320 | |
▷ Static methods | 197 | 14.92% |
▷ Public methods | 904 | 68.48% |
▷ Protected methods | 39 | 2.95% |
▷ Private methods | 377 | 28.56% |
Functions | 105 | |
▷ Named functions | 104 | 99.05% |
▷ Anonymous functions | 1 | 0.95% |
Constants | 153 | |
▷ Global constants | 106 | 69.28% |
▷ Class constants | 47 | 30.72% |
▷ Public constants | 47 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/plugin-icon.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/wp-top-news.png | 36.32KB | 10.14KB | ▼ 72.09% |