10% delicious-curator

Code Review | Delicious Curator

WordPress plugin Delicious Curator scored10%from 54 tests.

About plugin

  • Plugin page: delicious-curator
  • Plugin version: 0.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.3.2
  • WordPress version: 6.3.1
  • First release: Jan 5, 2012
  • Latest release: May 28, 2012
  • Number of updates: 14
  • Update frequency: every 10.3 days
  • Top authors: windyjonas (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,565 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
You still need to fix the following installer errors
  • The plugin cannot be installed
    • > Deprecated in wp-content/plugins/delicious-curator/delicious-curator.php+32
    Methods with the same name as their class will not be constructors in a future version of PHP; DeliciousCurator has a deprecated constructor

Server metrics [RAM: ▼1.84MB] [CPU: ▼55.98ms] Passed 4 tests

An overview of server-side resources used by Delicious Curator
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.15 ▼1.325.39 ▼43.04
Dashboard /wp-admin2.17 ▼1.146.79 ▼46.90
Posts /wp-admin/edit.php2.17 ▼1.197.12 ▼41.77
Add New Post /wp-admin/post-new.php2.17 ▼3.726.07 ▼92.22
Media Library /wp-admin/upload.php2.17 ▼1.066.62 ▼31.45

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
can_compress_scripts
widget_recent-comments
widget_recent-posts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for Delicious Curator
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.24 ▼0.091.63 ▼0.1942.44 ▼7.46
Dashboard /wp-admin2,196 ▲165.68 ▲0.0287.65 ▼4.6939.80 ▼0.75
Posts /wp-admin/edit.php2,104 ▲42.03 ▲0.0241.56 ▼4.5534.30 ▼11.98
Add New Post /wp-admin/post-new.php1,529 ▼823.94 ▲5.69688.42 ▲44.9655.00 ▼7.18
Media Library /wp-admin/upload.php1,404 ▲14.19 ▼0.0194.42 ▼2.2139.71 ▼3.56
Delicious Curator /wp-admin/delicious-curator.php260.420.0714.15

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • This plugin cannot be uninstalled
    • > Deprecated in wp-content/plugins/delicious-curator/delicious-curator.php+32
    Methods with the same name as their class will not be constructors in a future version of PHP; DeliciousCurator has a deprecated constructor
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however 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
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 get_option() in wp-content/plugins/delicious-curator/delicious-curator.php:43

User-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
    • > GET request to /wp-admin/delicious-curator.php
    • > Network (severe)
    wp-admin/delicious-curator.php - Failed to load resource: the server responded with a status of 404 (Not Found)

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:
  • Screenshots: Please add images for these screenshots: #1 (Set the options and run), #2 (The result)
You can look at the official readme.txt

delicious-curator/delicious-curator.php Passed 13 tests

The entry point to "Delicious Curator" version 0.3 is a PHP file that has certain tags in its header comment area
37 characters long description:
Create WP-post based on Delicious tag

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
No dangerous file extensions were detected237 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP13040237

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.19
Average class complexity17.00
▷ Minimum class complexity17.00
▷ Maximum class complexity17.00
Average method complexity5.00
▷ Minimum method complexity1.00
▷ Maximum method complexity17.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.14MB with 0.10MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png56.32KB16.19KB▼ 71.25%
screenshot-2.png88.09KB30.76KB▼ 65.08%