90% imagedock

Code Review | ImageDock

WordPress plugin ImageDock scored90%from 54 tests.

About plugin

  • Plugin page: imagedock
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-4.1
  • WordPress version: 6.3.1
  • First release: Apr 1, 2015
  • Latest release: Apr 1, 2015
  • Number of updates: 5
  • Update frequency: every 0.2 days
  • Top authors: AZdv (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /584 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.07MB] [CPU: ▼3.89ms] Passed 4 tests

An overview of server-side resources used by ImageDock
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0644.07 ▼0.46
Dashboard /wp-admin3.38 ▲0.0858.63 ▲9.37
Posts /wp-admin/edit.php3.50 ▲0.1452.93 ▲1.34
Add New Post /wp-admin/post-new.php5.96 ▲0.0884.74 ▼8.80
Media Library /wp-admin/upload.php3.29 ▲0.0633.32 ▼7.64

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 8 new files
Database: 1 new table, 7 new options
New tables
wp_imagedock
New WordPress options
imagedock_version
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for ImageDock
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,067 ▲32115.06 ▲0.688.78 ▲6.8142.23 ▼6.57
Dashboard /wp-admin2,366 ▲1816.56 ▲0.67127.82 ▲22.0742.72 ▲0.03
Posts /wp-admin/edit.php2,269 ▲1773.34 ▲1.2849.01 ▲7.0431.17 ▼6.06
Add New Post /wp-admin/post-new.php1,531 ▲1223.49 ▲0.33669.19 ▼7.3437.93 ▼15.79
Media Library /wp-admin/upload.php1,408 ▲174.19 ▼0.0092.26 ▼14.5142.88 ▼5.42

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

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP Passed 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 SRP test was a success

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 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
3 plugin tags: image animation effect, imagedock, image gallery

imagedock/imagedock.php Passed 13 tests

The main file in "ImageDock" v. 1.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
67 characters long description:
Create image galleries with a dock effect (something like OSX dock)

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
Everything looks great! No dangerous files found in this plugin390 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
PHP23413191
JavaScript31911148
CSS26051

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity15.00
▷ Minimum class complexity15.00
▷ Maximum class complexity15.00
Average method complexity1.93
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods15
▷ Static methods16.67%
▷ Public methods1173.33%
▷ Protected methods00.00%
▷ Private methods426.67%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin