83% delicious-recent-bookmarks

Code Review | WordPress Delicious Recent Bookmarks

WordPress plugin WordPress Delicious Recent Bookmarks scored83%from 54 tests.

About plugin

  • Plugin page: delicious-recent-...
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 23, 2013
  • Latest release: Jun 24, 2013
  • Number of updates: 2
  • Update frequency: every 1.5 days
  • Top authors: cheshire137 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,031 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
This plugin's installer ran successfully

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

An overview of server-side resources used by WordPress Delicious Recent Bookmarks
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.06 ▼2.43
Dashboard /wp-admin3.31 ▲0.0143.78 ▼4.93
Posts /wp-admin/edit.php3.37 ▲0.0145.95 ▼0.08
Add New Post /wp-admin/post-new.php5.90 ▲0.0180.41 ▼22.12
Media Library /wp-admin/upload.php3.24 ▲0.0131.20 ▼1.96

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for WordPress Delicious Recent Bookmarks
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,831 ▲8513.55 ▼0.821.93 ▲0.2339.92 ▲0.62
Dashboard /wp-admin2,205 ▲175.80 ▼0.1096.77 ▼13.5538.11 ▼5.75
Posts /wp-admin/edit.php2,088 ▼11.99 ▼0.0439.09 ▼1.2433.98 ▼1.26
Add New Post /wp-admin/post-new.php1,539 ▲518.23 ▼4.81607.27 ▼44.9759.93 ▲8.27
Media Library /wp-admin/upload.php1,384 ▼14.22 ▲0.0397.58 ▼3.1542.90 ▼2.34

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_wp_delicious_recent_bookmarks_widget
    • can_compress_scripts
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/delicious-recent-bookmarks/wp-delicious-recent-bookmarks.php:26

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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
Attributes that need to be fixed:
  • Contributors: The plugin contributors field is not present
  • Screenshots: These screenshots require images: #1 (The widget customization options), #2 (A sample of how your Delicious bookmarks might look)
You can take inspiration from this readme.txt

delicious-recent-bookmarks/wp-delicious-recent-bookmarks.php 92% from 13 tests

"WordPress Delicious Recent Bookmarks" version 0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
  • Main file name: Name the main plugin file the same as the plugin slug ("delicious-recent-bookmarks.php" instead of "wp-delicious-recent-bookmarks.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin228 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP11747181
CSS116047

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity25.00
▷ Minimum class complexity25.00
▷ Maximum class complexity25.00
Average method complexity3.40
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods10
▷ Static methods00.00%
▷ Public methods440.00%
▷ Protected methods00.00%
▷ Private methods660.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.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.09MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png32.20KB9.42KB▼ 70.73%
screenshot-2.png59.75KB20.45KB▼ 65.77%