73% visidea

Code Review | Visidea

WordPress plugin Visidea scored73%from 54 tests.

About plugin

  • Plugin page: visidea
  • Plugin version: 1.2.14
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.7-6.2
  • WordPress version: 6.3.1
  • First release: Mar 24, 2022
  • Latest release: Sep 11, 2023
  • Number of updates: 113
  • Update frequency: every 4.7 days
  • Top authors: visidea (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

20+ active /1,899 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲1.18MB] [CPU: ▲7.14ms] Passed 4 tests

Server-side resources used by Visidea
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.63 ▲1.1742.03 ▲1.62
Dashboard /wp-admin4.50 ▲1.1956.83 ▲12.17
Posts /wp-admin/edit.php4.61 ▲1.2560.36 ▲14.58
Add New Post /wp-admin/post-new.php7.08 ▲1.19107.06 ▲0.17
Media Library /wp-admin/upload.php4.42 ▲1.1951.67 ▲14.84
Settings /wp-admin/admin.php?page=visidea_general_setting4.3945.30
Scheduled Actions /wp-admin/tools.php?page=action-scheduler4.6161.65
Visidea /wp-admin/admin.php?page=visidea4.3940.89

Server storage [IO: ▲1.20MB] [DB: ▲0.01MB] Passed 3 tests

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 186 new files
Database: 4 new tables, 11 new options
New tables
wp_actionscheduler_actions
wp_actionscheduler_claims
wp_actionscheduler_groups
wp_actionscheduler_logs
New WordPress options
theysaidso_admin_options
can_compress_scripts
schema-ActionScheduler_StoreSchema
action_scheduler_hybrid_store_demarkation
widget_recent-posts
action_scheduler_lock_async-request-runner
schema-ActionScheduler_LoggerSchema
widget_theysaidso_widget
visidea_plugin_options
widget_recent-comments
...

Browser metrics Passed 4 tests

An overview of browser requirements for Visidea
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,574 ▼21213.47 ▼0.947.56 ▲5.640.08 ▼41.40
Dashboard /wp-admin2,209 ▲285.56 ▼0.1186.31 ▼8.7969.16 ▲24.27
Posts /wp-admin/edit.php2,126 ▲261.96 ▼0.0638.62 ▲1.3935.51 ▲0.49
Add New Post /wp-admin/post-new.php1,563 ▲2623.28 ▲5.06615.58 ▼21.28170.47 ▲105.93
Media Library /wp-admin/upload.php1,429 ▲324.18 ▲0.0596.28 ▼17.6574.87 ▲26.13
Settings /wp-admin/admin.php?page=visidea_general_setting8712.1623.4025.79
Scheduled Actions /wp-admin/tools.php?page=action-scheduler1,3361.8228.9828.40
Visidea /wp-admin/admin.php?page=visidea1,4139.94250.6768.56

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie tables detected upon uninstall: 4 tables
    • wp_actionscheduler_logs
    • wp_actionscheduler_actions
    • wp_actionscheduler_claims
    • wp_actionscheduler_groups
  • Zombie WordPress options detected upon uninstall: 11 options
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • action_scheduler_lock_async-request-runner
    • can_compress_scripts
    • widget_recent-comments
    • action_scheduler_hybrid_store_demarkation
    • visidea_plugin_options
    • schema-ActionScheduler_StoreSchema
    • widget_theysaidso_widget
    • ...

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
Everything seems fine, however 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
The following issues need your attention
  • 75× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_LogEntry' not found in wp-content/plugins/visidea/libraries/action-scheduler/classes/ActionScheduler_NullLogEntry.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_DBStore' not found in wp-content/plugins/visidea/libraries/action-scheduler/classes/migration/ActionScheduler_DBStoreMigrator.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_UnitTestCase' not found in wp-content/plugins/visidea/libraries/action-scheduler/tests/phpunit/migration/LogMigrator_Test.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_AdminView_Deprecated' not found in wp-content/plugins/visidea/libraries/action-scheduler/classes/ActionScheduler_AdminView.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'CronExpression_AbstractField' not found in wp-content/plugins/visidea/libraries/action-scheduler/lib/cron-expression/CronExpression_MinutesField.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_Schedule' not found in wp-content/plugins/visidea/libraries/action-scheduler/classes/schedules/ActionScheduler_SimpleSchedule.php:6
    • > PHP Fatal error
      Uncaught Error: Interface 'CronExpression_FieldInterface' not found in wp-content/plugins/visidea/libraries/action-scheduler/lib/cron-expression/CronExpression_AbstractField.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_UnitTestCase' not found in wp-content/plugins/visidea/libraries/action-scheduler/tests/phpunit/lock/ActionScheduler_OptionLock_Test.php:7
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_SimpleSchedule' not found in wp-content/plugins/visidea/libraries/action-scheduler/classes/schedules/ActionScheduler_CanceledSchedule.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'ActionScheduler_Abstract_QueueRunner' not found in wp-content/plugins/visidea/libraries/action-scheduler/classes/WP_CLI/ActionScheduler_WPCLI_QueueRunner.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 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
Please fix the following attributes:
  • Donate link: Invalid url: "hello@visidea.ai"
  • Tags: There are too many tags (12 tag instead of maximum 10)
The official readme.txt might help

visidea/visidea.php 92% from 13 tests

The principal PHP file in "Visidea" v. 1.2.14 is loaded by WordPress automatically on each request
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 142 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected14,481 lines of code in 160 files:
LanguageFilesBlank linesComment linesLines of code
PHP1242,6486,1339,946
JSON4002,418
Markdown123840707
JavaScript467136571
CSS24413266
Bourne Shell12311147
YAML4156111
XML38391
PO File1273072
SVG21053
HTML28052
Sass110047

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.20
Average class complexity8.66
▷ Minimum class complexity1.00
▷ Maximum class complexity96.00
Average method complexity2.12
▷ Minimum method complexity1.00
▷ Maximum method complexity40.00
Code structure
Namespaces3
Interfaces3
Traits0
Classes116
▷ Abstract classes1613.79%
▷ Concrete classes10086.21%
▷ Final classes00.00%
Methods846
▷ Static methods708.27%
▷ Public methods66578.61%
▷ Protected methods14517.14%
▷ Private methods364.26%
Functions54
▷ Named functions3361.11%
▷ Anonymous functions2138.89%
Constants37
▷ Global constants38.11%
▷ Class constants3491.89%
▷ Public constants34100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
admin/images/visidea-icon.png2.43KB0.97KB▼ 60.08%
libraries/action-scheduler/docs/mstile-150x150.png4.15KB3.67KB▼ 11.47%
libraries/action-scheduler/docs/android-chrome-256x256.png2.93KB3.03KB0.00%
libraries/action-scheduler/docs/android-chrome-192x192.png6.77KB2.46KB▼ 63.68%
libraries/action-scheduler/docs/favicon-32x32.png1.16KB0.71KB▼ 39.02%