Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/kush-micro-news/index.php+83
Methods with the same name as their class will not be constructors in a future version of PHP; KushMNWidget has a deprecated constructor
Server metrics [RAM: ▼1.80MB] [CPU: ▼185.53ms] Passed 4 tests
A check of server-side resources used by Kush Micro News
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.83 ▼0.89 | 5.72 ▼14.36 |
Dashboard /wp-admin | 1.85 ▼1.20 | 5.41 ▼31.00 |
Posts /wp-admin/edit.php | 1.85 ▼1.26 | 5.71 ▼40.14 |
Add New Post /wp-admin/post-new.php | 1.85 ▼3.58 | 6.31 ▼644.89 |
Media Library /wp-admin/upload.php | 1.85 ▼1.15 | 6.04 ▼26.09 |
Micro News /wp-admin/admin.php?page=micro-news | 1.85 | 5.62 |
Settings /wp-admin/admin.php?page=micro-news-config | 1.85 | 5.33 |
Add New /wp-admin/admin.php?page=micro-news-new | 1.85 | 5.38 |
Server storage [IO: ▲0.15MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 15 new files
Database: 1 new table, 20 new options
New tables |
---|
wp_kushmicronews |
New WordPress options |
---|
kush_mn_show_linkclean |
kush_mn_color_text |
kush_mn_load_nav_swap |
kush_mn_read_story_text |
kush_mn_load_newtab |
kush_mn_head_highlightColor |
kush_mn_show_lborder |
kush_mn_widget_name |
kush_mn_editor_access |
kush_mn_head_enable |
... |
Browser metrics Passed 4 tests
Checking browser requirements for Kush Micro News
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,719 ▲123 | 15.89 ▲0.17 | 9.12 ▲0.31 | 50.78 ▲2.00 |
Dashboard /wp-admin | 3,005 ▲71 | 6.14 ▼0.06 | 134.04 ▼16.62 | 102.56 ▼4.49 |
Posts /wp-admin/edit.php | 2,777 ▲38 | 2.74 ▲0.02 | 64.84 ▼3.54 | 87.30 ▼5.43 |
Add New Post /wp-admin/post-new.php | 1,698 ▼2,028 | 18.81 ▲3.61 | 359.70 ▼68.22 | 106.97 ▲3.58 |
Media Library /wp-admin/upload.php | 1,845 ▲35 | 5.04 ▼0.01 | 140.53 ▼5.91 | 119.22 ▲4.06 |
Micro News /wp-admin/admin.php?page=micro-news | 1,121 | 2.12 | 54.16 | 67.37 |
Settings /wp-admin/admin.php?page=micro-news-config | 1,833 | 2.22 | 56.46 | 81.27 |
Add New /wp-admin/admin.php?page=micro-news-new | 1,192 | 2.09 | 54.28 | 93.51 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/kush-micro-news/index.php+83
Methods with the same name as their class will not be constructors in a future version of PHP; KushMNWidget has a deprecated constructor
- Zombie WordPress options were found after uninstall: 1 option
- widget_kush-micro-news
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)
Smoke test failed, please fix the following
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=micro-news-new
- > Deprecated in wp-content/plugins/kush-micro-news/index.php+83
Methods with the same name as their class will not be constructors in a future version of PHP; KushMNWidget has a deprecated constructor
SRP 50% from 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
Please fix the following
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/kush-micro-news/includes/core.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/kush-micro-news/index.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/kush-micro-news/includes/admin.php:6
- > 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)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Screenshots: Screenshot #1 (Preview of output2. Adding new micro news3. Editing/Deleating old micro news.4. Widget) image not found
kush-micro-news/index.php 92% from 13 tests
The main PHP script in "Kush Micro News" version 1.6.7 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("kush-micro-news.php" instead of "index.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin1,146 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 204 | 61 | 875 |
CSS | 1 | 63 | 17 | 270 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 4.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.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 | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 22 | |
▷ Named functions | 22 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
5 PNG files occupy 0.08MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 38.40KB | 20.37KB | ▼ 46.95% |
screenshot-1.png | 24.04KB | 13.76KB | ▼ 42.77% |
assets/img/santa-hat-icon.png | 0.40KB | 0.41KB | 0.00% |
screenshot-4.png | 9.03KB | 5.04KB | ▼ 44.23% |
screenshot-2.png | 8.59KB | 5.01KB | ▼ 41.60% |