79% dinamize

Code Review | Dinamize

WordPress plugin Dinamize scored 79% from 54 tests.

About plugin

  • Plugin page: dinamize
  • Plugin version: 1.1.8
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.4
  • WordPress version: 6.3.1
  • First release: Aug 5, 2015
  • Latest release: Aug 21, 2023
  • Number of updates: 41
  • Update frequency: every 71.7 days
  • Top authors: dinamize (100%)

Code review

54 tests

User reviews

1 review

Install metrics

600+ active / 8,174 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
Installer ran successfully

Server metrics [RAM: ▲0.03MB] [CPU: ▼4.85ms] Passed 4 tests

Server-side resources used by Dinamize
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0345.98 ▲5.34
Dashboard /wp-admin3.33 ▲0.0344.11 ▼4.84
Posts /wp-admin/edit.php3.44 ▲0.0944.95 ▼2.62
Add New Post /wp-admin/post-new.php5.91 ▲0.0382.13 ▼15.56
Media Library /wp-admin/upload.php3.25 ▲0.0338.04 ▲3.61
Forms /wp-admin/admin.php?page=dinamize3.2437.22
New form /wp-admin/admin.php?page=dinamize-forms-new3.2230.14

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 7 new options
New WordPress options
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts
widget_dinamizewidget
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for Dinamize
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,935 ▲20013.59 ▼0.857.73 ▲5.8243.13 ▼0.49
Dashboard /wp-admin2,230 ▲755.80 ▲0.17101.36 ▼1.1840.02 ▼3.83
Posts /wp-admin/edit.php2,116 ▲242.06 ▲0.0641.48 ▼0.0934.92 ▲0.91
Add New Post /wp-admin/post-new.php1,535 ▲1517.61 ▼5.51678.88 ▲2.0963.44 ▲12.06
Media Library /wp-admin/upload.php1,415 ▲304.16 ▼0.0895.61 ▼6.8140.98 ▼7.06
Forms /wp-admin/admin.php?page=dinamize1,0161.6831.4829.30
New form /wp-admin/admin.php?page=dinamize-forms-new7982.0625.0324.33

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
These items require your attention
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • theysaidso_admin_options
    • db_upgraded
    • widget_dinamizewidget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 0% 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
Please take a closer look at the following
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/dinamize/dinamize.php
  • 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Warning
      require_once(ABSPATHwp-admin/includes/class-wp-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/dinamize/admin/class.list-form.php on line 3
    • > PHP Warning
      Use of undefined constant DINAMIZE_PLUGIN_DIR - assumed 'DINAMIZE_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/dinamize/admin/admin.php on line 2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/dinamize/includes/capabilities.php:3
    • > PHP Warning
      require_once(DINAMIZE_PLUGIN_DIR/admin/class.list-form.php): failed to open stream: No such file or directory in wp-content/plugins/dinamize/admin/admin.php on line 2
    • > PHP Warning
      require_once(DINAMIZE_PLUGIN_DIR/admin/class.list-form.php): failed to open stream: No such file or directory in wp-content/plugins/dinamize/class.widget.php on line 2
    • > PHP Fatal error
      require_once(): Failed opening required 'DINAMIZE_PLUGIN_DIR/admin/class.list-form.php' (include_path='.:/usr/share/php') in wp-content/plugins/dinamize/class.widget.php on line 2
    • > PHP Warning
      Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/dinamize/admin/class.list-form.php on line 3
    • > PHP Warning
      Use of undefined constant DINAMIZE_PLUGIN_DIR - assumed 'DINAMIZE_PLUGIN_DIR' (this will throw an Error in a future version of PHP) in wp-content/plugins/dinamize/class.widget.php on line 2
    • > PHP Fatal error
      require_once(): Failed opening required 'DINAMIZE_PLUGIN_DIR/admin/class.list-form.php' (include_path='.:/usr/share/php') in wp-content/plugins/dinamize/admin/admin.php on line 2
    • > PHP Fatal error
      require_once(): Failed opening required 'ABSPATHwp-admin/includes/class-wp-list-table.php' (include_path='.:/usr/share/php') in wp-content/plugins/dinamize/admin/class.list-form.php on line 3

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

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
4 plugin tags: dinamize automation, dinamize mail, e-mail marketing, dinamize

dinamize/dinamize.php Passed 13 tests

The main file in "Dinamize" v. 1.1.8 serves as a complement to information provided in readme.txt and as the entry point to the plugin
109 characters long description:
Para agilizar seu tempo a Dinamize criou um plugin que possibilita a integração da ferramenta com seu site.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin1,608 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
PHP620352711
JavaScript110261697
PO File13434106
CSS1122094

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity14.33
▷ Minimum class complexity6.00
▷ Maximum class complexity22.00
Average method complexity2.14
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods35
▷ Static methods720.00%
▷ Public methods3497.14%
▷ Protected methods00.00%
▷ Private methods12.86%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants480.00%
▷ Class constants120.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected