Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- Install procedure had errors
- > Deprecated in wp-content/plugins/workbox-nasdaq-xml-news-reader/plugin.php+79
Function create_function() is deprecated
Server metrics [RAM: ▼1.96MB] [CPU: ▼163.30ms] Passed 4 tests
An overview of server-side resources used by Workbox Nasdaq XML News Reader Plugin
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.04 ▼1.42 | 6.10 ▼38.77 |
Dashboard /wp-admin | 2.06 ▼1.32 | 5.50 ▼484.97 |
Posts /wp-admin/edit.php | 2.07 ▼1.29 | 5.98 ▼44.95 |
Add New Post /wp-admin/post-new.php | 2.06 ▼3.82 | 5.70 ▼84.50 |
Media Library /wp-admin/upload.php | 2.07 ▼1.16 | 5.16 ▼29.38 |
All News /wp-admin/edit.php?post_type=wb_news_xml | 2.07 | 6.44 |
Options /wp-admin/edit.php?post_type=wb_news_xml&page=wb_news_xml | 2.07 | 7.09 |
Create new Item /wp-admin/post-new.php?post_type=wb_news_xml | 2.07 | 5.10 |
Server storage [IO: ▲0.09MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 3 new files
Database: no new tables, 12 new options
New WordPress options |
---|
widget_theysaidso_widget |
wb_xml_news_items_amount |
widget_recent-comments |
wb_xml_news_user_id |
wb_xml_news_cache_minutes |
wb_xml_news_last_ts |
can_compress_scripts |
wb_xml_news_last_cache_time |
db_upgraded |
widget_recent-posts |
... |
Browser metrics Passed 4 tests
Workbox Nasdaq XML News Reader Plugin: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,836 ▲90 | 13.25 ▼1.14 | 1.77 ▼0.05 | 40.31 ▲0.18 |
Dashboard /wp-admin | 2,236 ▲45 | 4.87 ▼0.03 | 111.01 ▲4.65 | 39.69 ▲2.12 |
Posts /wp-admin/edit.php | 2,122 ▲36 | 2.00 ▼0.02 | 40.06 ▲2.47 | 35.80 ▲0.21 |
Add New Post /wp-admin/post-new.php | 1,561 ▲33 | 23.37 ▲5.16 | 604.84 ▼40.01 | 47.71 ▼7.70 |
Media Library /wp-admin/upload.php | 1,415 ▲30 | 4.23 ▼0.00 | 99.42 ▼2.47 | 41.35 ▼1.83 |
All News /wp-admin/edit.php?post_type=wb_news_xml | 3,531 | 2.02 | 39.52 | 53.61 |
Options /wp-admin/edit.php?post_type=wb_news_xml&page=wb_news_xml | 931 | 2.02 | 23.12 | 28.13 |
Create new Item /wp-admin/post-new.php?post_type=wb_news_xml | 2,414 | 7.83 | 168.11 | 66.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall without warnings or errors
- > Deprecated in wp-content/plugins/workbox-nasdaq-xml-news-reader/plugin.php+79
Function create_function() is deprecated
- Zombie WordPress options were found after uninstall: 12 options
- wb_xml_news_last_ts
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- wb_xml_news_last_cache_time
- wb_xml_news_items_amount
- widget_workboxxmlnewswidget
- theysaidso_admin_options
- wb_xml_news_user_id
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 4 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=wb_news_xml
- > Deprecated in wp-content/plugins/workbox-nasdaq-xml-news-reader/plugin.php+79
Function create_function() is deprecated
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 items
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/workbox-nasdaq-xml-news-reader/plugin.php:481
- > 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 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
3 plugin tags: xml reader, nasdaq, news
workbox-nasdaq-xml-news-reader/plugin.php 92% from 13 tests
Analyzing the main PHP file in "Workbox Nasdaq XML News Reader Plugin" version 1.0
You should first fix the following items:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("workbox-nasdaq-xml-news-reader.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin481 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 195 | 122 | 481 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.36 |
Average class complexity | 22.50 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 2.95 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 22 | |
▷ Static methods | 2 | 9.09% |
▷ Public methods | 22 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin