84% nova-dashboard-widget-bbc-news-technology

Code Review | Nova Dashboard Widget - BBC News - Technology

WordPress plugin Nova Dashboard Widget - BBC News - Technology scored84%from 54 tests.

About plugin

  • Plugin page: nova-dashboard-wi...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.6.1
  • WordPress version: 6.3.1
  • First release: Sep 24, 2013
  • Latest release: Oct 12, 2013
  • Number of updates: 5
  • Update frequency: every 3.6 days
  • Top authors: spike2828 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,357 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.00MB] [CPU: ▼11.46ms] Passed 4 tests

An overview of server-side resources used by Nova Dashboard Widget - BBC News - Technology
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0041.70 ▼1.12
Dashboard /wp-admin4.34 ▲0.9950.68 ▼14.58
Posts /wp-admin/edit.php3.36 ▲0.0048.15 ▼6.37
Add New Post /wp-admin/post-new.php5.89 ▲0.0082.78 ▼22.90
Media Library /wp-admin/upload.php3.23 ▲0.0036.46 ▼1.99

Server storage [IO: ▲0.00MB] [DB: ▲0.13MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
can_compress_scripts
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

Checking browser requirements for Nova Dashboard Widget - BBC News - Technology
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,858 ▲11214.43 ▲0.491.85 ▼0.2746.10 ▲2.54
Dashboard /wp-admin2,264 ▲845.62 ▼0.0490.87 ▼2.2338.78 ▼2.14
Posts /wp-admin/edit.php2,100 ▲31.97 ▼0.0439.77 ▲1.2035.06 ▼0.53
Add New Post /wp-admin/post-new.php1,539 ▲1323.22 ▲0.09667.20 ▼17.4051.92 ▲3.19
Media Library /wp-admin/upload.php1,400 ▲34.13 ▼0.1099.03 ▼9.2144.72 ▼1.71

Uninstaller [IO: ▲0.00MB] [DB: ▲0.13MB] 75% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though no errors were found, this is by no means an exhaustive test

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 items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nova-dashboard-widget-bbc-news-technology/nova-dashboard-widget-bbc-news-technology.php:56

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 97% 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
Please fix the following attributes:
  • Plugin Name: You should set the name of your plugin on the first line ( === nova-dashboard-widget-bbc-news-technology === )
The official readme.txt is a good inspiration

nova-dashboard-widget-bbc-news-technology/nova-dashboard-widget-bbc-news-technology.php Passed 13 tests

The principal PHP file in "Nova Dashboard Widget - BBC News - Technology" v. 1.0 is loaded by WordPress automatically on each request
83 characters long description:
A simple plugin that adds a BBC News Technology RSS feed to your worpress dashboard

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
Good job! No executable or dangerous file extensions detected25 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1102325

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions2
▷ Named functions2100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin