10% workbox-nasdaq-xml-news-reader

Code Review | Workbox Nasdaq XML News Reader Plugin

WordPress plugin Workbox Nasdaq XML News Reader Plugin scored10%from 54 tests.

About plugin

  • Plugin page: workbox-nasdaq-xm...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.7-4.6
  • WordPress version: 6.3.1
  • First release: Aug 26, 2016
  • Latest release: Sep 1, 2016
  • Number of updates: 7
  • Update frequency: every 1.4 days
  • Top authors: Workbox (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /801 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.04 ▼1.426.10 ▼38.77
Dashboard /wp-admin2.06 ▼1.325.50 ▼484.97
Posts /wp-admin/edit.php2.07 ▼1.295.98 ▼44.95
Add New Post /wp-admin/post-new.php2.06 ▼3.825.70 ▼84.50
Media Library /wp-admin/upload.php2.07 ▼1.165.16 ▼29.38
All News /wp-admin/edit.php?post_type=wb_news_xml2.076.44
Options /wp-admin/edit.php?post_type=wb_news_xml&page=wb_news_xml2.077.09
Create new Item /wp-admin/post-new.php?post_type=wb_news_xml2.075.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,836 ▲9013.25 ▼1.141.77 ▼0.0540.31 ▲0.18
Dashboard /wp-admin2,236 ▲454.87 ▼0.03111.01 ▲4.6539.69 ▲2.12
Posts /wp-admin/edit.php2,122 ▲362.00 ▼0.0240.06 ▲2.4735.80 ▲0.21
Add New Post /wp-admin/post-new.php1,561 ▲3323.37 ▲5.16604.84 ▼40.0147.71 ▼7.70
Media Library /wp-admin/upload.php1,415 ▲304.23 ▼0.0099.42 ▼2.4741.35 ▼1.83
All News /wp-admin/edit.php?post_type=wb_news_xml3,5312.0239.5253.61
Options /wp-admin/edit.php?post_type=wb_news_xml&page=wb_news_xml9312.0223.1228.13
Create new Item /wp-admin/post-new.php?post_type=wb_news_xml2,4147.83168.1166.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP1195122481

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 code0.36
Average class complexity22.50
▷ Minimum class complexity10.00
▷ Maximum class complexity35.00
Average method complexity2.95
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods22
▷ Static methods29.09%
▷ Public methods22100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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