73% dribbble-portfolio

Code Review | Dribbble Portfolio

WordPress plugin Dribbble Portfolio scored 73% from 54 tests.

About plugin

  • Plugin page: dribbble-portfolio
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.2.2
  • WordPress version: 6.3.1
  • First release: Feb 6, 2014
  • Latest release: Jun 9, 2015
  • Number of updates: 6
  • Update frequency: every 81.5 days
  • Top authors: kentothemes (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 1,652 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼1.93MB] [CPU: ▼53.16ms] Passed 4 tests

Analyzing server-side resources used by Dribbble Portfolio
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.405.74 ▼34.54
Dashboard /wp-admin2.08 ▼1.225.40 ▼46.39
Posts /wp-admin/edit.php2.08 ▼1.286.17 ▼40.46
Add New Post /wp-admin/post-new.php2.08 ▼3.815.22 ▼91.26
Media Library /wp-admin/upload.php2.08 ▼1.155.51 ▼28.98

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for Dribbble Portfolio
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,916 ▲18113.61 ▼1.035.79 ▲4.2543.07 ▲0.62
Dashboard /wp-admin2,210 ▲185.86 ▲0.9697.16 ▼15.0838.49 ▼3.22
Posts /wp-admin/edit.php2,093 ▲42.04 ▲0.0240.13 ▲5.8733.59 ▼0.11
Add New Post /wp-admin/post-new.php1,532 ▼123.05 ▼0.06654.35 ▲75.4650.95 ▲0.47
Media Library /wp-admin/upload.php1,392 ▲104.24 ▲0.01101.11 ▲4.0641.75 ▼0.77

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • The plugin did not uninstall gracefully
    • > User notice in wp-includes/functions.php+5905
    Function wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. This notice was triggered by the jquery handle. Please see Debugging in WordPress for more information. (This message was added in version 3.3.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not 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
Almost there! Just fix the following items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_enqueue_script() in wp-content/plugins/dribbble-portfolio/index.php:14

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Donate link: Invalid URI found ("")
  • Screenshots: These screenshots have no corresponding images in /assets: #1 (Display shots.), #2 (Shortcodes on post.), #3 (Display shots.)
The official readme.txt might help

dribbble-portfolio/index.php 92% from 13 tests

The primary PHP file in "Dribbble Portfolio" version 1.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: The principal plugin file should be the same as the plugin slug ("dribbble-portfolio.php" instead of "index.php")

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
Everything looks great! No dangerous files found in this plugin199 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS182199
PHP1541487
JavaScript115013

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.02
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%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
6 PNG files occupy 1.42MB with 0.87MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png923.93KB202.42KB▼ 78.09%
css/icon-hearts.png2.90KB0.29KB▼ 89.90%
screenshot-2.png68.81KB25.98KB▼ 62.24%
css/icon-views.png0.30KB0.41KB0.00%
screenshot-3.png458.75KB108.55KB▼ 76.34%