83% dimage-360

Code Review | DImage 360

WordPress plugin DImage 360 scored83%from 54 tests.

About plugin

  • Plugin page: dimage-360
  • Plugin version: 2.0
  • PHP compatiblity: 5.2.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.3.2
  • WordPress version: 6.3.1
  • First release: Feb 15, 2018
  • Latest release: Dec 24, 2019
  • Number of updates: 100
  • Update frequency: every 6.9 days
  • Top authors: darteweb (100%)

Code review

54 tests

User reviews

14 reviews

Install metrics

2,000+ active /19,842 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by DImage 360
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.72 ▼3.44
Dashboard /wp-admin3.31 ▼0.0442.40 ▼19.13
Posts /wp-admin/edit.php3.36 ▲0.0042.94 ▼2.86
Add New Post /wp-admin/post-new.php5.89 ▲0.0084.09 ▼9.23
Media Library /wp-admin/upload.php3.23 ▲0.0031.33 ▲1.68

Server storage [IO: ▲0.94MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 11 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

DImage 360: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,899 ▲15314.59 ▲0.2415.34 ▲13.5339.57 ▼16.24
Dashboard /wp-admin2,192 ▲185.50 ▼0.0884.87 ▼20.4938.53 ▼3.55
Posts /wp-admin/edit.php2,097 ▼32.00 ▲0.0540.01 ▲5.5539.49 ▲6.15
Add New Post /wp-admin/post-new.php1,534 ▲522.96 ▼0.11612.48 ▼73.1157.65 ▲5.19
Media Library /wp-admin/upload.php1,400 ▼34.17 ▼0.0294.89 ▼5.5043.52 ▼1.37

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

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
The following issues need your attention
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/dimage-360/d-image-360.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% 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
Attributes that require attention:
  • Screenshots: Add descriptions for screenshots #2, #3, #4, #5, #6 in dimage-360/assets to your readme.txt
You can look at the official readme.txt

dimage-360/d-image-360.php 85% from 13 tests

The main PHP file in "DImage 360" ver. 2.0 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 177 characters long)
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("dimage-360.php" instead of "d-image-360.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
Success! There were no dangerous files found in this plugin12,618 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
JSON20012,508
PHP27881
JavaScript30017
CSS22012

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.21
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%
Functions3
▷ Named functions3100.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
No PNG images were found in this plugin