10% wp-git-deploy

Code Review | WP Git Deploy

WordPress plugin WP Git Deploy scored 10% from 54 tests.

About plugin

  • Plugin page: wp-git-deploy
  • Plugin version: 0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9.2-4.0
  • WordPress version: 6.3.1
  • First release: Mar 31, 2014
  • Latest release: Oct 26, 2014
  • Number of updates: 7
  • Update frequency: every 64.6 days
  • Top authors: rodrigosprimo (85.71%)vmassuchetto (28.57%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 1,310 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Deprecated in wp-content/plugins/wp-git-deploy/wp-deploy.php+10
    Methods with the same name as their class will not be constructors in a future version of PHP; WP_Deploy has a deprecated constructor

Server metrics [RAM: ▼1.92MB] [CPU: ▼50.78ms] Passed 4 tests

Analyzing server-side resources used by WP Git Deploy
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.06 ▼1.406.81 ▼31.85
Dashboard /wp-admin2.08 ▼1.228.09 ▼45.78
Posts /wp-admin/edit.php2.08 ▼1.277.66 ▼38.84
Add New Post /wp-admin/post-new.php2.08 ▼3.807.15 ▼86.65
Media Library /wp-admin/upload.php2.08 ▼1.156.32 ▼28.62

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

Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 3 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

WP Git Deploy: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲9413.24 ▼1.371.75 ▲0.0542.86 ▼5.42
Dashboard /wp-admin2,225 ▲394.89 ▼1.0398.30 ▼6.4342.01 ▲1.66
Posts /wp-admin/edit.php2,105 ▲162.01 ▼0.0440.11 ▲3.6336.41 ▼0.12
Add New Post /wp-admin/post-new.php1,547 ▲1918.20 ▼5.06576.31 ▼181.7651.34 ▼4.44
Media Library /wp-admin/upload.php1,407 ▲194.18 ▲0.0295.11 ▼14.9842.32 ▼8.88

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function is_embed was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.)
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments

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
Everything seems fine, however this is by no means an exhaustive test

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 items
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-git-deploy/wp-deploy.php:147

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: deploy, development, git, production

wp-git-deploy/wp-deploy.php 92% from 13 tests

"WP Git Deploy" version 0.2's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
  • Main file name: The principal plugin file should be the same as the plugin slug ("wp-git-deploy.php" instead of "wp-deploy.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin109 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13210105
CSS1004

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.31
Average class complexity14.00
▷ Minimum class complexity14.00
▷ Maximum class complexity14.00
Average method complexity2.62
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods00.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin