Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.04MB] [CPU: ▼9.79ms] Passed 4 tests
Server-side resources used by Mynewsdesk
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 34.38 ▼8.87 |
Dashboard /wp-admin | 3.35 ▲0.01 | 45.92 ▼18.54 |
Posts /wp-admin/edit.php | 3.40 ▲0.05 | 49.89 ▲3.20 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 87.39 ▼11.03 |
Media Library /wp-admin/upload.php | 3.27 ▲0.05 | 34.24 ▼0.70 |
myNewsDesk /wp-admin/options-general.php?page=mnd-plugin-options_options | 3.25 | 34.51 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Mynewsdesk
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,880 ▲119 | 13.88 ▼0.48 | 10.31 ▲8.61 | 36.87 ▼6.70 |
Dashboard /wp-admin | 2,202 ▲25 | 5.61 ▼0.06 | 92.27 ▲1.94 | 37.80 ▼0.78 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.01 ▼0.02 | 39.29 ▲4.94 | 36.15 ▼1.99 |
Add New Post /wp-admin/post-new.php | 1,531 ▼15 | 23.01 ▲5.13 | 664.05 ▲20.98 | 51.03 ▼15.74 |
Media Library /wp-admin/upload.php | 1,401 ▲1 | 4.24 ▲0.07 | 97.63 ▼0.74 | 42.14 ▼4.38 |
myNewsDesk /wp-admin/options-general.php?page=mnd-plugin-options_options | 934 | 2.01 | 23.49 | 25.47 |
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
These items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=mnd-plugin-options_options
- > User deprecated in wp-includes/functions.php+5463
Function screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=mnd-plugin-options_options
- > User deprecated in wp-includes/functions.php+5463
Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/mynewsdesk/wpMyNewsDesk.php:12
- > PHP Warning
Use of undefined constant WP_PLUGIN_URL - assumed 'WP_PLUGIN_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/mynewsdesk/wpMyNewsDesk.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/mynewsdesk/shortcode.php:26
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/mynewsdesk/settings.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/mynewsdesk/options.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: press releases, mynewsdesk, wordpress mynewsdesk, wpmynewsdesk, my news desk
mynewsdesk/wpMyNewsDesk.php 92% from 13 tests
"Mynewsdesk" version 1.5's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("mynewsdesk.php" instead of "wpMyNewsDesk.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
There were no executable files found in this plugin326 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 43 | 17 | 264 |
CSS | 1 | 7 | 2 | 37 |
JavaScript | 1 | 0 | 0 | 25 |
PHP code Passed 2 tests
This is a very shot 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.24 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.25 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 4 | |
▷ Static methods | 4 | 100.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 4 | |
▷ Named functions | 4 | 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 Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin