90% dynamicconditions

Code Review | Dynamic Conditions

WordPress plugin Dynamic Conditions scored90%from 54 tests.

About plugin

  • Plugin page: dynamicconditions
  • Plugin version: 1.6.2
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Nov 6, 2018
  • Latest release: Jun 2, 2023
  • Number of updates: 70
  • Update frequency: every 23.8 days
  • Top authors: rtowebsites (68.57%)crazypsycho (32.86%)

Code review

54 tests

User reviews

102 reviews

Install metrics

60,000+ active /286,680 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.05MB] [CPU: ▼5.33ms] Passed 4 tests

An overview of server-side resources used by Dynamic Conditions
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0537.93 ▼2.96
Dashboard /wp-admin3.35 ▲0.0549.62 ▼2.14
Posts /wp-admin/edit.php3.40 ▲0.0547.37 ▼4.64
Add New Post /wp-admin/post-new.php5.93 ▲0.0584.04 ▼11.56
Media Library /wp-admin/upload.php3.27 ▲0.0437.05 ▼0.23

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

How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 48 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
db_upgraded
widget_recent-comments
can_compress_scripts
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Dynamic Conditions
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,875 ▲11413.42 ▼0.958.99 ▲7.0745.60 ▼3.61
Dashboard /wp-admin2,197 ▲175.58 ▼0.0986.34 ▼4.6940.25 ▲3.06
Posts /wp-admin/edit.php2,105 ▲51.99 ▼0.0336.27 ▼0.7434.35 ▼1.80
Add New Post /wp-admin/post-new.php1,545 ▲1923.31 ▲5.91677.02 ▼19.9260.60 ▲3.66
Media Library /wp-admin/upload.php1,405 ▲54.25 ▲0.04106.71 ▲1.2147.76 ▲1.88

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
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests Passed 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)
The smoke test was a success, however most plugin functionality was not tested

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 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser errors were detected

Optimizations

Plugin configuration 96% from 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
5 plugin tags: dynamic, rto, fields, elementor, conditions

dynamicconditions/dynamic-conditions.php 92% from 13 tests

The entry point to "Dynamic Conditions" version 1.6.2 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("dynamicconditions.php" instead of "dynamic-conditions.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
No dangerous file extensions were detected2,019 lines of code in 31 files:
LanguageFilesBlank linesComment linesLines of code
PHP234308881,771
PO File14321102
JavaScript2173071
CSS312462
JSON20013

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity14.46
▷ Minimum class complexity1.00
▷ Maximum class complexity96.00
Average method complexity3.08
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces7
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods85
▷ Static methods1517.65%
▷ Public methods6374.12%
▷ Protected methods11.18%
▷ Private methods2124.71%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants4
▷ Global constants375.00%
▷ Class constants125.00%
▷ Public constants1100.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