84% git-sync

Code Review | GitSync

WordPress plugin GitSync scored84%from 54 tests.

About plugin

  • Plugin page: git-sync
  • Plugin version: 1.1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.3.2-5.9.1
  • WordPress version: 6.3.1
  • First release: Mar 31, 2021
  • Latest release: Feb 24, 2022
  • Number of updates: 23
  • Update frequency: every 14.4 days
  • Top authors: rubengarzajr (100%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,226 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
Installer ran successfully

Server metrics [RAM: ▲0.06MB] [CPU: ▼4.85ms] Passed 4 tests

Analyzing server-side resources used by GitSync
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0640.82 ▼0.97
Dashboard /wp-admin3.36 ▲0.0646.12 ▼5.87
Posts /wp-admin/edit.php3.41 ▲0.0645.56 ▼1.90
Add New Post /wp-admin/post-new.php5.94 ▲0.0682.96 ▼10.66
Media Library /wp-admin/upload.php3.28 ▲0.0634.92 ▼0.25

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

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

Browser metrics Passed 4 tests

This is an overview of browser requirements for GitSync
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8114.46 ▼0.121.73 ▲0.1244.01 ▲3.38
Dashboard /wp-admin2,222 ▲314.87 ▼0.03110.42 ▲8.2942.50 ▲0.19
Posts /wp-admin/edit.php2,105 ▲162.01 ▼0.0037.29 ▲3.3833.82 ▲1.11
Add New Post /wp-admin/post-new.php1,549 ▲3023.27 ▼0.15656.86 ▼20.2452.17 ▼3.78
Media Library /wp-admin/upload.php1,407 ▲194.26 ▲0.0295.41 ▼15.6341.93 ▼5.56

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
The following items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_theysaidso_widget
    • 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 | 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
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/git-sync/gitsync.php:138

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 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
Attributes that need to be fixed:
  • Screenshots: Add a description for screenshot #1 in git-sync/assets to your readme.txt
The official readme.txt might help

git-sync/gitsync.php 92% from 13 tests

"GitSync" version 1.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("git-sync.php" instead of "gitsync.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Success! There were no dangerous files found in this plugin511 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP15821348
CSS1190132
JavaScript19031

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions11
▷ Named functions11100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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