84% nova-dashboard-cleanup

Code Review | Nova Dashboard Cleanup

WordPress plugin Nova Dashboard Cleanup scored 84% from 53 tests.

About plugin

  • Plugin page: nova-dashboard-cl...
  • Plugin version: 1.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.6.1
  • WordPress version: 5.8.1
  • First release: Sep 20, 2013
  • Latest release: Oct 7, 2013
  • Number of updates: 13
  • Update frequency: every 1.3 days
  • Top authors: spike2828 (100%)

Code review

53 tests

User reviews

1 review

Install metrics

10+ active / 1,567 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼264.07ms] Passed 4 tests

Server-side resources used by Nova Dashboard Cleanup
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.85 ▲0.1336.44 ▲14.82
Dashboard /wp-admin3.17 ▲0.121,603.60 ▲1,565.35
Posts /wp-admin/edit.php3.12 ▲0.0235.00 ▼7.71
Add New Post /wp-admin/post-new.php5.44 ▲0.0190.05 ▼1,051.72
Media Library /wp-admin/upload.php3.02 ▲0.0129.48 ▼11.65

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

Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 2 new files
Database: no new tables, 1 new option
New WordPress options
recovery_mode_email_last_sent

Browser metrics Passed 4 tests

An overview of browser requirements for Nova Dashboard Cleanup
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,709 ▼89714.34 ▼1.1912.54 ▲2.1842.26 ▼5.20
Dashboard /wp-admin1,969 ▼8812.17 ▼3.6842.60 ▼94.1093.44 ▼4.17
Posts /wp-admin/edit.php2,706 ▲33.17 ▲0.4971.42 ▲6.0992.49 ▲2.33
Add New Post /wp-admin/post-new.php1,651 ▼218.43 ▼0.52373.38 ▼13.89107.71 ▼4.50
Media Library /wp-admin/upload.php1,772 ▼05.22 ▲0.21146.26 ▼1.57102.57 ▼17.59

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 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 were found after uninstall: 1 option
    • recovery_mode_email_last_sent

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

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

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
The following issues need your attention
  • 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-cleanup/nova-dashboard-cleanup.php:77

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

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Plugin Name: Please specify the plugin name on the first line ( === nova-dashboard-cleanup === )
The official readme.txt is a good inspiration

nova-dashboard-cleanup/nova-dashboard-cleanup.php Passed 13 tests

The main PHP file in "Nova Dashboard Cleanup" ver. 1.2 adds more information about the plugin and also serves as the entry point for this plugin
66 characters long description:
A simple plugin that removes unused and unwanted dashboard widgets

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin41 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1152541

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.12
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%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 1 test

Image compression Passed 1 test

Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin