83% dippi

Code Review | My Canvas Shortcode

WordPress plugin My Canvas Shortcode scored83%from 54 tests.

About plugin

  • Plugin page: dippi
  • Plugin version: The plugin's version...
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1.1
  • WordPress version: 6.3.1
  • First release: Apr 5, 2016
  • Latest release: Apr 5, 2016
  • Number of updates: 4
  • Update frequency: every 0.3 days
  • Top authors: parisk85 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /682 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully

Server metrics [RAM: ▼0.00MB] [CPU: ▼10.53ms] Passed 4 tests

Server-side resources used by My Canvas Shortcode
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0136.00 ▼8.64
Dashboard /wp-admin3.31 ▼0.0344.75 ▼17.98
Posts /wp-admin/edit.php3.36 ▲0.0145.38 ▲1.62
Add New Post /wp-admin/post-new.php5.89 ▲0.0180.49 ▼17.11
Media Library /wp-admin/upload.php3.23 ▲0.0135.93 ▲3.89

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

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

Browser metrics Passed 4 tests

Checking browser requirements for My Canvas Shortcode
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,827 ▲5613.25 ▼1.072.42 ▲0.3438.67 ▼3.79
Dashboard /wp-admin2,203 ▲145.84 ▲0.91103.46 ▼14.9036.68 ▼8.10
Posts /wp-admin/edit.php2,089 ▲32.00 ▲0.0038.70 ▲4.1033.84 ▼2.45
Add New Post /wp-admin/post-new.php1,533 ▲1323.24 ▲0.24655.67 ▼10.6654.55 ▼3.28
Media Library /wp-admin/upload.php1,382 ▼64.23 ▲0.0396.50 ▼11.0943.61 ▼3.10

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts

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)
Even though no errors were found, 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 items
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/dippi/dippi.php:15

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 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
7 plugin tags: digital, image, gamma, contrast, brightness...

dippi/dippi.php 77% from 13 tests

The main PHP file in "My Canvas Shortcode" ver. The plugin's version... adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Version: The version number should be digits and periods (ex. "1.0.3" instead of "The plugin's version...")
  • Text Domain: The text domain should only use lowercase characters and dashes
  • Domain Path: Use only dashes and lowercase characters for the domain path ("Optional. Plugin's relative directory path to .mo files. Example: /locale/")

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
No dangerous file extensions were detected368 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript1540280
PHP141288

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.00
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 files were detected