83% connections-to-directorist-migrator

Code Review | Connections to Directorist Migrator

WordPress plugin Connections to Directorist Migrator scored83%from 54 tests.

About plugin

  • Plugin page: connections-to-di...
  • Plugin version: 0.1.2
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.2-6.3
  • WordPress version: 6.3.1
  • First release: May 9, 2022
  • Latest release: Aug 21, 2023
  • Number of updates: 4
  • Update frequency: every 123.5 days
  • Top authors: rafiq91 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /407 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

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

A check of server-side resources used by Connections to Directorist Migrator
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0837.46 ▲1.02
Dashboard /wp-admin3.39 ▲0.0844.20 ▼9.64
Posts /wp-admin/edit.php3.50 ▲0.1448.69 ▲1.42
Add New Post /wp-admin/post-new.php5.97 ▲0.0891.36 ▼1.21
Media Library /wp-admin/upload.php3.31 ▲0.0837.49 ▲0.26

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 83 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
can_compress_scripts
widget_recent-posts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Connections to Directorist Migrator
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲1714.24 ▼0.381.66 ▼0.0244.26 ▲2.52
Dashboard /wp-admin2,189 ▲125.62 ▼0.0492.61 ▲2.1738.40 ▼16.05
Posts /wp-admin/edit.php2,100 ▼01.98 ▼0.1541.30 ▲5.6237.74 ▲5.16
Add New Post /wp-admin/post-new.php1,526 ▼223.03 ▼0.01661.10 ▼9.7750.02 ▼3.57
Media Library /wp-admin/upload.php1,403 ▲64.29 ▲0.11104.69 ▼1.8446.38 ▼0.49

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
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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 fix the following
  • 7× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'Connections_To_Directorist_Migrator\\Controller\\Asset\\AssetEnqueuer' not found in wp-content/plugins/connections-to-directorist-migrator/app/Controller/Asset/PublicAsset.php:5
    • > PHP Fatal error
      Uncaught Error: Class 'Connections_To_Directorist_Migrator\\Utility\\Enqueuer' not found in wp-content/plugins/connections-to-directorist-migrator/app/Controller/Asset/AssetEnqueuer.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/connections-to-directorist-migrator/helper/const.php:36
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/connections-to-directorist-migrator/app/Service/Integration/Connections/view/form-fields/is-preferred-only-field.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/connections-to-directorist-migrator/helper/const.php:36
    • > PHP Fatal error
      Uncaught Error: Class 'Connections_To_Directorist_Migrator\\Controller\\Asset\\AssetEnqueuer' not found in wp-content/plugins/connections-to-directorist-migrator/app/Controller/Asset/AdminAsset.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/connections-to-directorist-migrator/helper/const.php:36

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention: The official readme.txt might help

connections-to-directorist-migrator/connections-to-directorist-migrator.php 85% from 13 tests

Analyzing the main PHP file in "Connections to Directorist Migrator" version 0.1.2
The following require your attention:
  • Requires at least: Required version must be the same as the one declared in readme.txt ("5.7" instead of "5.2")
  • Requires PHP: Required version must be the same as the one declared in readme.txt ("7.0" instead of "7.2")

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
No dangerous file extensions were detected2,654 lines of code in 72 files:
LanguageFilesBlank linesComment linesLines of code
PHP395878101,656
JavaScript23286451972
CSS64319
Sass4007

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity8.96
▷ Minimum class complexity1.00
▷ Maximum class complexity58.00
Average method complexity2.75
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces12
Interfaces0
Traits0
Classes24
▷ Abstract classes28.33%
▷ Concrete classes2291.67%
▷ Final classes14.55%
Methods111
▷ Static methods2522.52%
▷ Public methods9989.19%
▷ Protected methods98.11%
▷ Private methods32.70%
Functions14
▷ Named functions1392.86%
▷ Anonymous functions17.14%
Constants14
▷ Global constants14100.00%
▷ Class constants00.00%
▷ Public constants00.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