84% wordsync

Code Review | WordSync

WordPress plugin WordSync scored84%from 54 tests.

About plugin

  • Plugin page: wordsync
  • Plugin version: 0.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.3
  • WordPress version: 6.3.1
  • First release: Mar 23, 2017
  • Latest release: Apr 25, 2017
  • Number of updates: 7
  • Update frequency: every 4.3 days
  • Top authors: bravedigital (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,067 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 successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.04MB] [CPU: ▼1.87ms] Passed 4 tests

An overview of server-side resources used by WordSync
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.46 ▲0.0039.00 ▼1.61
Dashboard /wp-admin3.36 ▲0.0645.39 ▼5.41
Posts /wp-admin/edit.php3.47 ▲0.1243.31 ▼1.60
Add New Post /wp-admin/post-new.php5.94 ▲0.0689.95 ▲1.56
Media Library /wp-admin/upload.php3.28 ▲0.0632.55 ▲1.15
WordSync /wp-admin/tools.php?page=wordsync3.3032.21

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

Filesystem and database footprint
No storage issues were detected
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
db_upgraded
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

This is an overview of browser requirements for WordSync
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.25 ▼1.031.72 ▼0.0340.89 ▼6.26
Dashboard /wp-admin2,213 ▲255.86 ▲0.0195.79 ▼36.3438.75 ▼4.53
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0434.34 ▼3.5035.33 ▼0.25
Add New Post /wp-admin/post-new.php1,545 ▲1218.23 ▼4.77660.09 ▼34.4257.07 ▼5.55
Media Library /wp-admin/upload.php1,395 ▲44.18 ▼0.0898.71 ▼2.5041.68 ▼6.56
WordSync /wp-admin/tools.php?page=wordsync9182.1027.4647.91

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please fix the following
  • 11× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_admin_page_title() in wp-content/plugins/wordsync/admin/partials/settingspage.php:30
    • > PHP Fatal error
      Uncaught Error: Class 'BraveWordsync_Processor' not found in wp-content/plugins/wordsync/includes/sync/processors/class-wordsync-taxonomy-processor.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'BraveWordsync_Processor' not found in wp-content/plugins/wordsync/includes/sync/processors/class-wordsync-attachment-processor.php:9
    • > PHP Notice
      Undefined index: wordsync_admin in wp-content/plugins/wordsync/admin/partials/mainpage.php on line 15
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Log\\LoggerInterface' not found in wp-content/plugins/wordsync/includes/logging/AbstractLogger.php:12
    • > PHP Fatal error
      Uncaught Error: Class 'Psr\\Log\\AbstractLogger' not found in wp-content/plugins/wordsync/includes/logging/logger.php:29
    • > PHP Fatal error
      Uncaught Error: Class 'BraveWordsync_Processor' not found in wp-content/plugins/wordsync/includes/sync/processors/class-wordsync-post-processor.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'BraveWordsync_Processor' not found in wp-content/plugins/wordsync/includes/sync/processors/class-wordsync-settings-processor.php:9
    • > PHP Fatal error
      Uncaught Error: Class 'BraveWordsync_Processor' not found in wp-content/plugins/wordsync/includes/sync/processors/class-wordsync-user-processor.php:9
    • > PHP Notice
      Undefined index: wordsync_admin in wp-content/plugins/wordsync/admin/partials/settingspage.php on line 14

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 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: synchronise, sync, backup, migration, merge

wordsync/brave-wordsync.php 92% from 13 tests

The primary PHP file in "WordSync" version 0.1.1 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wordsync.php" instead of "brave-wordsync.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin5,681 lines of code in 32 files:
LanguageFilesBlank linesComment linesLines of code
PHP251,0241,3473,710
JavaScript3211321,019
Sass31477630
CSS1181322

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity19.27
▷ Minimum class complexity1.00
▷ Maximum class complexity80.00
Average method complexity2.98
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces2
Interfaces1
Traits0
Classes25
▷ Abstract classes28.00%
▷ Concrete classes2392.00%
▷ Final classes00.00%
Methods249
▷ Static methods218.43%
▷ Public methods18574.30%
▷ Protected methods4518.07%
▷ Private methods197.63%
Functions3
▷ Named functions266.67%
▷ Anonymous functions133.33%
Constants35
▷ Global constants12.86%
▷ Class constants3497.14%
▷ Public constants34100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin