84% wp-deploy-flow

Code Review | WP Deploy Flow

WordPress plugin WP Deploy Flow scored84%from 54 tests.

About plugin

  • Plugin page: wp-deploy-flow
  • Plugin version: 0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: May 15, 2017
  • Latest release: May 15, 2017
  • Number of updates: 3
  • Update frequency: every 0.3 days
  • Top authors: tylershuster (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /785 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.14MB] [CPU: ▼0.45ms] Passed 4 tests

A check of server-side resources used by WP Deploy Flow
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.61 ▲0.1542.64 ▼1.09
Dashboard /wp-admin3.45 ▲0.1448.81 ▼1.54
Posts /wp-admin/edit.php3.56 ▲0.2047.71 ▲2.75
Add New Post /wp-admin/post-new.php6.03 ▲0.1497.40 ▲4.56
Media Library /wp-admin/upload.php3.37 ▲0.1434.13 ▼1.93
Deploy /wp-admin/tools.php?page=deployment3.5932.37

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 53 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
widget_recent-comments
db_upgraded
widget_theysaidso_widget
theysaidso_admin_options
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for WP Deploy Flow
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲6913.72 ▼0.591.57 ▼0.3542.16 ▼2.17
Dashboard /wp-admin2,210 ▲214.84 ▼1.10110.85 ▼10.4040.80 ▼6.18
Posts /wp-admin/edit.php2,093 ▲42.01 ▼0.0139.59 ▲3.8136.33 ▲3.28
Add New Post /wp-admin/post-new.php1,545 ▲317.98 ▼0.07631.37 ▼27.6363.01 ▲10.15
Media Library /wp-admin/upload.php1,386 ▼54.25 ▲0.0799.88 ▲2.8540.64 ▼4.67
Deploy /wp-admin/tools.php?page=deployment1,0312.0124.5827.39

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options
    • 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
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following items
  • 13× PHP files trigger server errors when accessed directly (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib\\Crypt\\DES' not found in wp-content/plugins/wp-deploy-flow/vendor/phpseclib/phpseclib/phpseclib/Crypt/TripleDES.php:46
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/wp-deploy-flow/vendor/phpseclib/phpseclib/phpseclib/Crypt/RC2.php:44
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/wp-deploy-flow/vendor/phpseclib/phpseclib/phpseclib/Crypt/DES.php:52
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/wp-deploy-flow/vendor/phpseclib/phpseclib/phpseclib/Crypt/Blowfish.php:48
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/wp-deploy-flow/vendor/phpseclib/phpseclib/phpseclib/Crypt/Rijndael.php:64
    • > PHP Fatal error
      Uncaught Error: Call to undefined function WP_Deploy_Flow\\add_action() in wp-content/plugins/wp-deploy-flow/lib/api.php:512
    • > PHP Warning
      "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in wp-content/plugins/wp-deploy-flow/lib/srdb.class.php on line 860
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wp-deploy-flow/test.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib\et\\SSH2' not found in wp-content/plugins/wp-deploy-flow/vendor/phpseclib/phpseclib/phpseclib/Net/SFTP.php:47
    • > PHP Fatal error
      Uncaught Error: Class 'phpseclib\\Crypt\\Base' not found in wp-content/plugins/wp-deploy-flow/vendor/phpseclib/phpseclib/phpseclib/Crypt/Twofish.php:48

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 an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
2 plugin tags: deployment, cli

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

Analyzing the main PHP file in "WP Deploy Flow" version 0.1
The following require your attention:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("wp-deploy-flow.php" instead of "deploy.php")

Code Analysis 97% from 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin20,915 lines of code in 46 files:
LanguageFilesBlank linesComment linesLines of code
PHP393,64811,71520,320
JSON300227
CSS190199
Markdown246085
JavaScript10084

PHP code 50% from 2 tests

Analyzing cyclomatic complexity and code structure
The following items need your attention
  • Cyclomatic complexity of methods should be reduced to less than 100 (currently 104)
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity99.82
▷ Minimum class complexity1.00
▷ Maximum class complexity591.00
Average method complexity6.10
▷ Minimum method complexity1.00
▷ Maximum method complexity104.00
Code structure
Namespaces10
Interfaces0
Traits0
Classes34
▷ Abstract classes12.94%
▷ Concrete classes3397.06%
▷ Final classes00.00%
Methods663
▷ Static methods243.62%
▷ Public methods64797.59%
▷ Protected methods142.11%
▷ Private methods20.30%
Functions6
▷ Named functions350.00%
▷ Anonymous functions350.00%
Constants176
▷ Global constants2111.93%
▷ Class constants15588.07%
▷ Public constants155100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

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