83% wp-news-desk-dashboard-feed

Code Review | WP News Desk Dashboard Feed

WordPress plugin WP News Desk Dashboard Feed scored83%from 54 tests.

About plugin

  • Plugin page: wp-news-desk-dash...
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.6
  • WordPress version: 6.3.1
  • First release: Jun 3, 2016
  • Latest release: May 28, 2016
  • Number of updates: 2
  • Update frequency: every 1.5 days
  • Top authors: jeangalea (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /874 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

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

Analyzing server-side resources used by WP News Desk Dashboard Feed
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0038.58 ▼4.65
Dashboard /wp-admin3.61 ▲0.3052.86 ▼5.56
Posts /wp-admin/edit.php3.36 ▲0.0052.58 ▼5.38
Add New Post /wp-admin/post-new.php5.89 ▲0.0097.68 ▼9.25
Media Library /wp-admin/upload.php3.23 ▲0.0043.91 ▲6.85

Server storage [IO: ▲0.09MB] [DB: ▲0.04MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP News Desk Dashboard Feed
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,867 ▲10614.35 ▼0.041.73 ▲0.0046.12 ▲2.40
Dashboard /wp-admin2,276 ▲1025.63 ▲0.0391.44 ▲6.8446.79 ▲7.69
Posts /wp-admin/edit.php2,100 ▼01.99 ▲0.0039.96 ▼0.8836.16 ▼1.71
Add New Post /wp-admin/post-new.php1,526 ▼023.56 ▲0.43655.20 ▼33.3760.72 ▲2.20
Media Library /wp-admin/upload.php1,400 ▼04.20 ▲0.0398.14 ▼8.9238.62 ▼8.15

Uninstaller [IO: ▲0.00MB] [DB: ▲0.04MB] 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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-news-desk-dashboard-feed/wpnewdesk-dashboard-feed.php:77

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Default widget view.), #2 (Configuration options.)
Please take inspiration from this readme.txt

wp-news-desk-dashboard-feed/wpnewdesk-dashboard-feed.php 85% from 13 tests

The main PHP file in "WP News Desk Dashboard Feed" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 202 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-news-desk-dashboard-feed.php" instead of "wpnewdesk-dashboard-feed.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin44 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1191444

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of 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.47
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%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.08MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png14.04KB4.53KB▼ 67.70%
screenshot-1.png72.96KB20.49KB▼ 71.92%