84% dynamictags

Code Review | DynamicTags

WordPress plugin DynamicTags scored 84% from 54 tests.

About plugin

  • Plugin page: dynamictags
  • Plugin version: 1.2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.3
  • WordPress version: 6.3.1
  • First release: Aug 14, 2020
  • Latest release: Jun 1, 2023
  • Number of updates: 10
  • Update frequency: every 102.2 days
  • Top authors: rtowebsites (100%)

Code review

54 tests

User reviews

9 reviews

Install metrics

1,000+ active / 10,564 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.08MB] [CPU: ▼2.50ms] Passed 4 tests

Server-side resources used by DynamicTags
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0939.23 ▲0.53
Dashboard /wp-admin3.38 ▲0.0846.93 ▲0.45
Posts /wp-admin/edit.php3.50 ▲0.1448.03 ▼1.34
Add New Post /wp-admin/post-new.php5.96 ▲0.0887.92 ▼9.63
Media Library /wp-admin/upload.php3.31 ▲0.0836.70 ▲2.32

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 45 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments
theysaidso_admin_options
db_upgraded

Browser metrics Passed 4 tests

DynamicTags: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.29 ▼1.131.71 ▼0.1143.55 ▼4.61
Dashboard /wp-admin2,200 ▲95.81 ▼0.09105.52 ▲3.1739.10 ▼2.69
Posts /wp-admin/edit.php2,089 ▼02.01 ▲0.0134.43 ▼5.4429.64 ▼4.48
Add New Post /wp-admin/post-new.php1,514 ▼017.54 ▼0.08683.75 ▲4.2153.33 ▼0.52
Media Library /wp-admin/upload.php1,388 ▼04.21 ▼0.0499.97 ▲0.8540.72 ▼4.35

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • This plugin does not fully uninstall, leaving 6 options in the database
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
  • 18× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Core\\DynamicTags\\Data_Tag' not found in wp-content/plugins/dynamictags/Lib/DynamicTags/CurrentUrl.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Core\\DynamicTags\\Tag' not found in wp-content/plugins/dynamictags/Lib/DynamicTags/UserRole.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Core\\DynamicTags\\Tag' not found in wp-content/plugins/dynamictags/Lib/DynamicTags/IsFeed.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Core\\DynamicTags\\Data_Tag' not found in wp-content/plugins/dynamictags/Lib/DynamicTags/UserAuthorImageUrl.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Core\\DynamicTags\\Tag' not found in wp-content/plugins/dynamictags/Lib/DynamicTags/IsAuthorOfPost.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Core\\DynamicTags\\Tag' not found in wp-content/plugins/dynamictags/Lib/DynamicTags/NumberPostsQuery.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Core\\DynamicTags\\Tag' not found in wp-content/plugins/dynamictags/Lib/DynamicTags/CurrentUserCan.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Core\\DynamicTags\\Tag' not found in wp-content/plugins/dynamictags/Lib/DynamicTags/Cookies.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Core\\DynamicTags\\Tag' not found in wp-content/plugins/dynamictags/Lib/DynamicTags/IsSingular.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'Elementor\\Core\\DynamicTags\\Tag' not found in wp-content/plugins/dynamictags/Lib/DynamicTags/AreCommentsAllowed.php:9

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: dynamic tags, elementor

dynamictags/dynamic-tags.php 85% from 13 tests

The main PHP file in "DynamicTags" ver. 1.2.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
  • Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("dynamictags.php" instead of "dynamic-tags.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin6,289 lines of code in 47 files:
LanguageFilesBlank linesComment linesLines of code
JSON4004,689
PHP415185911,517
PO File123058
JavaScript13225

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity4.26
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity1.57
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits1
Classes33
▷ Abstract classes00.00%
▷ Concrete classes33100.00%
▷ Final classes00.00%
Methods196
▷ Static methods73.57%
▷ Public methods16684.69%
▷ Protected methods2110.71%
▷ Private methods94.59%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants5
▷ Global constants360.00%
▷ Class constants240.00%
▷ Public constants2100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected