Benchmarks
Plugin footprint 83% 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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.34MB] [CPU: ▲1.04ms] Passed 4 tests
Server-side resources used by NewsPlugin
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.80 ▲0.34 | 42.65 ▲2.45 |
Dashboard /wp-admin | 3.64 ▲0.34 | 45.69 ▼3.93 |
Posts /wp-admin/edit.php | 3.75 ▲0.40 | 49.98 ▲1.36 |
Add New Post /wp-admin/post-new.php | 6.24 ▲0.35 | 97.28 ▲8.16 |
Media Library /wp-admin/upload.php | 3.56 ▲0.34 | 37.37 ▲4.29 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 11 new options
New WordPress options |
---|
newsPlugin_system_info |
widget_recent-comments |
widget_recent-posts |
news_plugin_version_taken |
db_upgraded |
news_plugin_version |
widget_theysaidso_widget |
news_plugin_url_method |
widget_news_plugin_widget |
can_compress_scripts |
... |
Browser metrics Passed 4 tests
A check of browser resources used by NewsPlugin
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,824 ▲89 | 13.31 ▼1.07 | 1.66 ▼0.16 | 42.88 ▼0.54 |
Dashboard /wp-admin | 2,225 ▲34 | 4.91 ▼0.94 | 102.27 ▼5.15 | 40.71 ▼5.17 |
Posts /wp-admin/edit.php | 2,114 ▲28 | 2.05 ▲0.04 | 41.60 ▲2.36 | 35.95 ▼2.53 |
Add New Post /wp-admin/post-new.php | 1,533 ▼9 | 23.37 ▲4.87 | 641.84 ▼9.58 | 49.58 ▼8.42 |
Media Library /wp-admin/upload.php | 1,413 ▲22 | 4.24 ▲0.04 | 97.50 ▲2.06 | 40.41 ▼4.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
Please fix the following items
- This plugin did not uninstall successfully, leaving 10 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_news_plugin_widget
- widget_recent-comments
- news_plugin_version
- theysaidso_admin_options
- news_plugin_url_method
- widget_theysaidso_widget
- news_plugin_version_taken
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 3× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/newsplugin/news-plugin.php
- > /wp-content/plugins/newsplugin/news-plugin-widget.php
- > /wp-content/plugins/newsplugin/news-plugin-utils.php
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/newsplugin/save_style.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html__() in wp-content/plugins/newsplugin/send_feedback.php:14
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: news, newsfeed, newsfeeds, news plugin, news feed...
newsplugin/news-plugin.php 69% from 13 tests
"NewsPlugin" version 1.1.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("newsplugin.php" instead of "news-plugin.php")
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
- Description: The description should be shorter than 140 characters (currently 268 characters long)
- Domain Path: The domain path folder does not exist ("/languages")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected3,488 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 218 | 635 | 1,995 |
JavaScript | 2 | 327 | 170 | 1,357 |
CSS | 2 | 10 | 0 | 66 |
XML | 1 | 14 | 21 | 52 |
JSON | 1 | 0 | 0 | 18 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 83.00 |
▷ Minimum class complexity | 57.00 |
▷ Maximum class complexity | 126.00 |
Average method complexity | 4.28 |
▷ 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 | 75 | |
▷ Static methods | 19 | 25.33% |
▷ Public methods | 53 | 70.67% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 22 | 29.33% |
Functions | 2 | |
▷ Named functions | 2 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin