Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.13MB] [CPU: ▲2.94ms] 75% from 4 tests
Analyzing server-side resources used by WP News - WordPress News / Magazine Plugin
Please fix the following
- CPU: Total CPU usage should be kept under 500.00ms (currently 1,345.17ms on /wp-admin/admin.php?page=wpnews-recommendations)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 42.17 ▲2.79 |
Dashboard /wp-admin | 3.50 ▲0.20 | 52.99 ▲6.31 |
Posts /wp-admin/edit.php | 3.55 ▲0.20 | 51.35 ▲3.31 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.11 | 97.60 ▲1.62 |
Media Library /wp-admin/upload.php | 3.34 ▲0.11 | 37.48 ▲4.02 |
Recommendations /wp-admin/admin.php?page=wpnews-recommendations | 7.66 | 1,345.17 |
WP News /wp-admin/admin.php?page=htmagazine | 3.33 | 38.11 |
Server storage [IO: ▲2.43MB] [DB: ▲0.67MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 80 new files
Database: no new tables, 13 new options
New WordPress options |
---|
db_upgraded |
widget_htmagazine_single_banner |
htinstagram_general_tabs |
widget_recent-posts |
can_compress_scripts |
widget_htmagazine_newsletter_widget |
widget_htmagazine_recent-widget |
widget_recent-comments |
widget_htmagazine_description_widget |
widget_htmagazine_video_popup |
... |
Browser metrics Passed 4 tests
WP News - WordPress News / Magazine Plugin: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,991 ▲256 | 15.24 ▲0.66 | 1.80 ▼0.09 | 44.21 ▼2.16 |
Dashboard /wp-admin | 2,382 ▲191 | 6.63 ▲1.51 | 130.73 ▲21.85 | 100.94 ▲59.61 |
Posts /wp-admin/edit.php | 2,310 ▲221 | 3.57 ▲1.60 | 54.38 ▲14.64 | 72.31 ▲37.09 |
Add New Post /wp-admin/post-new.php | 1,719 ▲177 | 23.03 ▲4.92 | 595.18 ▼6.16 | 31.65 ▼19.99 |
Media Library /wp-admin/upload.php | 1,447 ▲65 | 4.32 ▲0.11 | 82.13 ▼17.16 | 75.10 ▲33.17 |
Recommendations /wp-admin/admin.php?page=wpnews-recommendations | 3,092 | 3.52 | 47.58 | 97.33 |
WP News /wp-admin/admin.php?page=htmagazine | 1,057 | 3.32 | 49.24 | 60.54 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.67MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 13 options in the database
- widget_htmagazine_recent-widget
- db_upgraded
- widget_recent-posts
- htinstagram_general_tabs
- can_compress_scripts
- widget_htmagazine_video_popup
- widget_htmagazine_single_banner
- widget_htmagazine_author_about_widget
- widget_htmagazine_newsletter_widget
- widget_recent-comments
- ...
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested
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
The following issues need your attention
- 9× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'Elementor\\Icons_Manager' not found in wp-content/plugins/wp-news-magazine/includes/class.htmagazine-icon-manager.php:9
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-news-magazine/includes/widgets/author-info.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-news-magazine/admin/include/admin_notice.php:19
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-news-magazine/includes/widgets/newsletter.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-news-magazine/includes/widgets/recent-post.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-news-magazine/includes/helpers_function.php:15
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-news-magazine/includes/widgets/video-popup.php:10
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-news-magazine/includes/widgets/company-info-widget.php:6
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-news-magazine/includes/widgets/single-banner.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: wordpress news, blog, magazine, news, elementor
wp-news-magazine/wp-news-magazine.php 92% from 13 tests
"WP News - WordPress News / Magazine Plugin" version 1.2.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
- 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
There were no executable files found in this plugin16,259 lines of code in 52 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 32 | 1,816 | 586 | 11,951 |
SVG | 1 | 0 | 0 | 2,671 |
CSS | 8 | 953 | 154 | 1,154 |
JavaScript | 11 | 106 | 155 | 483 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 21.82 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 72.00 |
Average method complexity | 4.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 71.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 28 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 28 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 182 | |
▷ Static methods | 4 | 2.20% |
▷ Public methods | 148 | 81.32% |
▷ Protected methods | 32 | 17.58% |
▷ Private methods | 2 | 1.10% |
Functions | 17 | |
▷ Named functions | 17 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
20 PNG files occupy 0.12MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
(invalid) admin/assets/images/extensions/was-this-helpful.png | 1.21KB | 0.00KB | ▼ 100.00% |
(invalid) admin/assets/images/extensions/ht-google-place-review.png | 2.64KB | 0.00KB | ▼ 100.00% |
admin/assets/images/extensions/hashbar-pro.png | 3.15KB | 3.30KB | 0.00% |
admin/assets/images/extensions/just-tables-pro.png | 1.02KB | 1.05KB | 0.00% |
(invalid) admin/assets/images/extensions/cf7-extensions-pro.png | 8.57KB | 0.00KB | ▼ 100.00% |