84% solid-dynamics

Code Review | Solid Dynamics

WordPress plugin Solid Dynamics scored84%from 54 tests.

About plugin

  • Plugin page: solid-dynamics
  • Plugin version: 1.5.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jun 17, 2021
  • Latest release: Apr 8, 2023
  • Number of updates: 19
  • Update frequency: every 35.8 days
  • Top authors: soliddigital (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /4,341 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

Server metrics [RAM: ▲0.23MB] [CPU: ▼4.16ms] Passed 4 tests

This is a short check of server-side resources used by Solid Dynamics
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.69 ▲0.2345.30 ▲3.75
Dashboard /wp-admin3.55 ▲0.2053.69 ▼9.52
Posts /wp-admin/edit.php3.66 ▲0.3046.99 ▼1.08
Add New Post /wp-admin/post-new.php6.13 ▲0.2493.12 ▼7.79
Media Library /wp-admin/upload.php3.47 ▲0.2439.01 ▲1.75
Solid Dynamics /wp-admin/options-general.php?page=solid-dynamics-settings3.4538.40

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 71 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Solid Dynamics
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5814.42 ▼0.331.83 ▲0.0843.40 ▲5.61
Dashboard /wp-admin2,210 ▲184.86 ▼0.11100.61 ▼8.4740.91 ▼7.38
Posts /wp-admin/edit.php2,093 ▲12.00 ▼0.0135.90 ▼4.0536.71 ▼4.94
Add New Post /wp-admin/post-new.php1,517 ▼217.39 ▼5.89637.83 ▼12.9049.10 ▼1.99
Media Library /wp-admin/upload.php1,392 ▲44.09 ▼0.0697.99 ▼12.4849.44 ▲4.00
Solid Dynamics /wp-admin/options-general.php?page=solid-dynamics-settings9042.0340.2230.13

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however 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
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Solid\\add_filter() in wp-content/plugins/solid-dynamics/settings/settings-fields.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Core\\DynamicTags\\Data_Tag' not found in wp-content/plugins/solid-dynamics/classes/parent-meta-image.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Core\\DynamicTags\\Tag' not found in wp-content/plugins/solid-dynamics/classes/list-pluck.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Core\\DynamicTags\\Tag' not found in wp-content/plugins/solid-dynamics/classes/menu.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Core\\DynamicTags\\Tag' not found in wp-content/plugins/solid-dynamics/classes/custom-callback.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Core\\DynamicTags\\Tag' not found in wp-content/plugins/solid-dynamics/classes/post-field.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Core\\DynamicTags\\Tag' not found in wp-content/plugins/solid-dynamics/classes/parent-meta.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
4 plugin tags: elementor, dynamic tags, jet engine, macros

solid-dynamics/solid-dynamics.php Passed 13 tests

The principal PHP file in "Solid Dynamics" v. 1.5.2 is loaded by WordPress automatically on each request
56 characters long description:
Helpful utilities for Elementor, Jet Engine, and beyond.

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
No dangerous file extensions were detected14,516 lines of code in 51 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript272,4012,05810,381
HTML4390381,714
PHP133636031,401
CSS5173198983
Markdown16024
JSON10013

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity18.10
▷ Minimum class complexity1.00
▷ Maximum class complexity139.00
Average method complexity2.69
▷ Minimum method complexity1.00
▷ Maximum method complexity28.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes10
▷ Abstract classes00.00%
▷ Concrete classes10100.00%
▷ Final classes00.00%
Methods101
▷ Static methods21.98%
▷ Public methods9493.07%
▷ Protected methods65.94%
▷ Private methods10.99%
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

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
15 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
wp-settings-framework/assets/vendor/jquery-timepicker/include/ui-1.10.0/ui-lightness/images/ui-bg_highlight-soft_75_ffe45c_1x100.png0.13KB0.18KB0.00%
wp-settings-framework/assets/vendor/jquery-timepicker/include/ui-1.10.0/ui-lightness/images/ui-bg_gloss-wave_35_f6a828_500x100.png2.12KB1.93KB▼ 8.95%
wp-settings-framework/assets/vendor/jquery-timepicker/include/ui-1.10.0/ui-lightness/images/ui-bg_glass_65_ffffff_1x400.png0.10KB0.10KB▼ 5.71%
wp-settings-framework/assets/vendor/jquery-timepicker/include/ui-1.10.0/ui-lightness/images/ui-bg_diagonals-thick_20_666666_40x40.png0.25KB0.15KB▼ 37.45%
wp-settings-framework/assets/vendor/jquery-timepicker/include/ui-1.10.0/ui-lightness/images/ui-bg_flat_10_000000_40x100.png0.17KB0.08KB▼ 51.12%