84% crowdaa-sync

Code Review | Crowdaa Sync

WordPress plugin Crowdaa Sync scored84%from 54 tests.

About plugin

  • Plugin page: crowdaa-sync
  • Plugin version: 1.7.1
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.5-5.9
  • WordPress version: 6.3.1
  • First release: Oct 26, 2021
  • Latest release: Dec 5, 2022
  • Number of updates: 20
  • Update frequency: every 20.3 days
  • Top authors: crowdaa (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /659 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

Server-side resources used by Crowdaa Sync
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2642.64 ▲1.10
Dashboard /wp-admin3.35 ▲0.0551.28 ▼6.08
Posts /wp-admin/edit.php3.47 ▲0.1155.48 ▲2.45
Add New Post /wp-admin/post-new.php5.97 ▲0.08101.10 ▲7.60
Media Library /wp-admin/upload.php3.28 ▲0.0537.82 ▼0.30

Server storage [IO: ▲1.29MB] [DB: ▲0.31MB] Passed 3 tests

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 212 new files
Database: no new tables, 9 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
crowdaa_sync_articles_wp_to_api_from
crowdaa_sync_articles_api_to_wp_from
widget_recent-comments
widget_recent-posts
crowdaa_last_version
db_upgraded

Browser metrics Passed 4 tests

An overview of browser requirements for Crowdaa Sync
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,895 ▲13413.33 ▼0.959.19 ▲7.4842.02 ▼9.10
Dashboard /wp-admin2,218 ▲415.54 ▼0.1184.45 ▼14.3838.01 ▼5.96
Posts /wp-admin/edit.php2,126 ▲262.00 ▲0.0140.47 ▲5.3638.31 ▲3.85
Add New Post /wp-admin/post-new.php6,376 ▲4,85018.67 ▼4.24869.49 ▲183.8370.07 ▲13.39
Media Library /wp-admin/upload.php1,423 ▲234.31 ▲0.17102.15 ▲0.2544.52 ▼0.42

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
  • The uninstall procedure has failed, leaving 9 options in the database
    • crowdaa_sync_articles_wp_to_api_from
    • widget_recent-posts
    • crowdaa_sync_articles_api_to_wp_from
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • crowdaa_last_version
    • db_upgraded
    • widget_recent-comments

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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 58× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\TaskQueueInterface' not found in wp-content/plugins/crowdaa-sync/vendor/guzzlehttp/promises/src/TaskQueue.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromisorInterface' not found in wp-content/plugins/crowdaa-sync/vendor/guzzlehttp/promises/src/EachPromise.php:9
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Exception\\GuzzleException' not found in wp-content/plugins/crowdaa-sync/vendor/guzzlehttp/guzzle/src/Exception/InvalidArgumentException.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/crowdaa-sync/vendor/guzzlehttp/psr7/src/LimitStream.php:12
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/crowdaa-sync/vendor/guzzlehttp/psr7/src/FnStream.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Cookie\\CookieJar' not found in wp-content/plugins/crowdaa-sync/vendor/guzzlehttp/guzzle/src/Cookie/SessionCookieJar.php:8
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\ClientInterface' not found in wp-content/plugins/crowdaa-sync/vendor/guzzlehttp/guzzle/src/Client.php:17
    • > PHP Fatal error
      Uncaught Error: Class 'Crowdaa_Sync_Admin_Display' not found in wp-content/plugins/crowdaa-sync/admin/partials/crowdaa-sync-admin-display.php:16
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/crowdaa-sync/vendor/guzzlehttp/psr7/src/AppendStream.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/crowdaa-sync/vendor/guzzlehttp/promises/src/Promise.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
8 plugin tags: mobile, application, api, crowdaa, synchronization...

crowdaa-sync/crowdaa-sync.php 85% from 13 tests

Analyzing the main PHP file in "Crowdaa Sync" version 1.7.1
The following require your attention:
  • Requires at least: The required version number did not match the one declared in readme.txt ("5.5.5" instead of "5.5")
  • Requires PHP: The required version number did not match the one declared in readme.txt ("7.3" instead of "7.2")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected20,899 lines of code in 190 files:
LanguageFilesBlank linesComment linesLines of code
PHP1513,0237,17715,289
Markdown161,31403,868
JSON16001,072
JavaScript25813382
CSS2451249
SVG10023
make1409
YAML1007

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.44
Average class complexity16.46
▷ Minimum class complexity1.00
▷ Maximum class complexity229.00
Average method complexity3.32
▷ Minimum method complexity1.00
▷ Maximum method complexity61.00
Code structure
Namespaces11
Interfaces26
Traits3
Classes111
▷ Abstract classes00.00%
▷ Concrete classes111100.00%
▷ Final classes3531.53%
Methods974
▷ Static methods23223.82%
▷ Public methods79281.31%
▷ Protected methods40.41%
▷ Private methods17818.28%
Functions137
▷ Named functions3727.01%
▷ Anonymous functions10072.99%
Constants73
▷ Global constants68.22%
▷ Class constants6791.78%
▷ Public constants5582.09%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin