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

Code Review | Nova Dashboard Widget - BBC News - Politics

WordPress plugin Nova Dashboard Widget - BBC News - Politics 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 27, 2013
  • Latest release: Oct 12, 2013
  • Number of updates: 5
  • Update frequency: every 3.0 days
  • Top authors: spike2828 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,201 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼2.80ms] Passed 4 tests

Analyzing server-side resources used by Nova Dashboard Widget - BBC News - Politics
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.04 ▲1.99
Dashboard /wp-admin4.42 ▲1.1252.58 ▲6.64
Posts /wp-admin/edit.php3.36 ▲0.0139.09 ▼9.67
Add New Post /wp-admin/post-new.php5.89 ▲0.0190.90 ▼2.28
Media Library /wp-admin/upload.php3.24 ▲0.0131.49 ▼1.25

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Nova Dashboard Widget - BBC News - Politics
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,858 ▲7214.20 ▼0.071.82 ▼0.1244.00 ▲2.82
Dashboard /wp-admin2,267 ▲935.64 ▲0.0495.31 ▲11.6743.59 ▲0.57
Posts /wp-admin/edit.php2,103 ▲32.04 ▲0.0143.00 ▲4.5240.80 ▲4.52
Add New Post /wp-admin/post-new.php1,535 ▼718.35 ▼0.08660.88 ▲46.8265.67 ▲4.31
Media Library /wp-admin/upload.php1,400 ▼04.18 ▼0.0192.84 ▼3.4539.62 ▼3.09

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/nova-dashboard-widget-bbc-news-politics/nova-dashboard-widget-bbc-news-technology.php:56

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that require attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === nova-dashboard-widget-bbc-news-politics === )
You can take inspiration from this readme.txt

nova-dashboard-widget-bbc-news-politics/nova-dashboard-widget-bbc-news-technology.php 92% from 13 tests

"Nova Dashboard Widget - BBC News - Politics" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("nova-dashboard-widget-bbc-news-politics.php" instead of "nova-dashboard-widget-bbc-news-technology.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin25 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1102325

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
There are no cyclomatic complexity problems detected for this plugin
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin