84% dynamo

Code Review | DynaMo

WordPress plugin DynaMo scored84%from 54 tests.

About plugin

  • Plugin page: dynamo
  • Plugin version: 1.2
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3
  • WordPress version: 6.3.1
  • First release: Dec 1, 2021
  • Latest release: Aug 7, 2023
  • Number of updates: 4
  • Update frequency: every 153.7 days
  • Top authors: Chouby (100%)

Code review

54 tests

User reviews

1 review

Install metrics

500+ active /3,799 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
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.07MB] [CPU: ▲0.12ms] Passed 4 tests

A check of server-side resources used by DynaMo
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0740.87 ▼2.50
Dashboard /wp-admin3.37 ▲0.0750.45 ▼1.48
Posts /wp-admin/edit.php3.49 ▲0.1352.19 ▲2.29
Add New Post /wp-admin/post-new.php5.95 ▲0.07103.37 ▲13.03
Media Library /wp-admin/upload.php3.30 ▲0.0737.09 ▲2.15

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

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

Browser metrics Passed 4 tests

DynaMo: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.31 ▼0.911.83 ▼0.1841.05 ▼4.28
Dashboard /wp-admin2,224 ▲184.86 ▼0.0297.40 ▼18.9838.69 ▼4.30
Posts /wp-admin/edit.php2,100 ▼02.00 ▼0.1440.56 ▲5.1235.63 ▼0.93
Add New Post /wp-admin/post-new.php1,546 ▲123.21 ▲0.04614.19 ▼82.7963.71 ▲10.17
Media Library /wp-admin/upload.php1,400 ▲34.23 ▲0.0898.95 ▼14.2747.74 ▲0.90

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested

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
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WP_Syntex\\DynaMo\\add_filter() in wp-content/plugins/dynamo/src/Plugin.php:24
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Syntex\\DynaMo\\MO_Reader' not found in wp-content/plugins/dynamo/src/Dynamic/MO_Reader.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Syntex\\DynaMo\\MO_Reader' not found in wp-content/plugins/dynamo/src/Full/MO_Reader.php:15
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Syntex\\DynaMo\\MO' not found in wp-content/plugins/dynamo/src/Full/MO.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'WP_Syntex\\DynaMo\\Dynamic\\Search_Handler' not found in wp-content/plugins/dynamo/src/Dynamic/Hash_Search.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Syntex\\DynaMo\\MO' not found in wp-content/plugins/dynamo/src/Dynamic/MO.php:15
    • > PHP Fatal error
      Uncaught Error: Interface 'WP_Syntex\\DynaMo\\Dynamic\\Search_Handler' not found in wp-content/plugins/dynamo/src/Dynamic/Binary_Search.php:16

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: speed, translation, language, performance, cache

dynamo/dynamo.php 92% from 13 tests

"DynaMo" version 1.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
  • Domain Path: The domain path is invalid: folder "/languages" does not exist

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
Good job! No executable or dangerous file extensions detected1,428 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP212808731,427
JSON1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.47
Average class complexity13.79
▷ Minimum class complexity1.00
▷ Maximum class complexity44.00
Average method complexity3.89
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces5
Interfaces1
Traits0
Classes13
▷ Abstract classes215.38%
▷ Concrete classes1184.62%
▷ Final classes00.00%
Methods69
▷ Static methods2231.88%
▷ Public methods6289.86%
▷ Protected methods57.25%
▷ Private methods22.90%
Functions2
▷ Named functions150.00%
▷ Anonymous functions150.00%
Constants1
▷ Global constants00.00%
▷ Class constants1100.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin