10% pushlive

Code Review | PushLive - Staging Sites to Live in One Click

WordPress plugin PushLive - Staging Sites to Live in One Click scored10%from 54 tests.

About plugin

  • Plugin page: pushlive
  • Plugin version: 0.6.8
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Sep 27, 2015
  • Latest release: Nov 8, 2015
  • Number of updates: 128
  • Update frequency: every 0.9 days
  • Top authors: jxaxmxixn (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

50+ active /5,470 total downloads

Benchmarks

Plugin footprint 23% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/pushlive/pushlive.php+75
    Undefined index: option_page

Server metrics [RAM: ▼1.86MB] [CPU: ▼49.42ms] Passed 4 tests

A check of server-side resources used by PushLive - Staging Sites to Live in One Click
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0137.37 ▼6.66
Dashboard /wp-admin2.09 ▼1.226.28 ▼44.51
Posts /wp-admin/edit.php2.09 ▼1.277.96 ▼36.53
Add New Post /wp-admin/post-new.php2.09 ▼3.806.01 ▼84.62
Media Library /wp-admin/upload.php2.09 ▼1.145.75 ▼32.01
Setup /wp-admin/admin.php?page=pushlive-admin-options2.8318.10
Replicate (Soon!) /wp-admin/admin.php?page=pushlive-replicate-options2.8317.40
PushLive /wp-admin/admin.php?page=pushlive-admin-tool2.7916.13

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 26 new files
Database: 1 new table, 6 new options
New tables
wp_pushlive
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

A check of browser resources used by PushLive - Staging Sites to Live in One Click
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,858 ▲8714.47 ▲0.101.97 ▼0.1941.62 ▼1.77
Dashboard /wp-admin2,233 ▲425.91 ▲0.8896.02 ▼13.9439.87 ▼2.80
Posts /wp-admin/edit.php2,119 ▲332.06 ▲0.0436.68 ▲0.6333.77 ▲0.46
Add New Post /wp-admin/post-new.php1,560 ▲2523.17 ▲0.09638.40 ▼41.1356.25 ▼7.23
Media Library /wp-admin/upload.php1,424 ▲394.21 ▲0.0696.72 ▼3.6643.58 ▼0.65
Setup /wp-admin/admin.php?page=pushlive-admin-options1,1711.7727.3234.54
Replicate (Soon!) /wp-admin/admin.php?page=pushlive-replicate-options9651.7523.1631.58
PushLive /wp-admin/admin.php?page=pushlive-admin-tool8791.7329.2834.86

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/pushlive/pushlive.php+75
    Undefined index: option_page
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_pushlive
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=pushlive-admin-tool
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method PushLive_Admin::init() should not be called statically
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=pushlive-admin-tool
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method PushLive_Admin::pushlive_menu() should not be called statically
    • > GET request to /wp-admin/admin.php?page=pushlive-admin-options
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method PushLive_Admin::pushlive_options() should not be called statically
    • > GET request to /wp-admin/admin.php?page=pushlive-admin-options
    • > Warning in wp-admin/includes/template.php+1771
    call_user_func() expects parameter 1 to be a valid callback, function 'admin_exclude_settings_callback' not found or invalid function name
  • 13 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=pushlive-admin-options
    • > Warning in wp-content/plugins/pushlive/views/exclude.php+40
    in_array() expects parameter 2 to be array, bool given
    • > GET request to /wp-admin/admin.php?page=pushlive-replicate-options
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method PushLive_Admin::pushlive_replicate() should not be called statically
    • > GET request to /wp-admin/admin.php?page=pushlive-admin-tool
    • > Deprecated in wp-includes/class-wp-hook.php+310
    Non-static method PushLive_Admin::pushlive_tools() should not be called statically

SRP Passed 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
No output text or server-side errors detected on direct access of PHP files

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 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
Attributes that require attention:
  • Requires at least: Invalid plugin version format
  • Tags: There are too many tags (28 tag instead of maximum 10)
You can look at the official readme.txt

pushlive/pushlive.php 92% from 13 tests

Analyzing the main PHP file in "PushLive - Staging Sites to Live in One Click" version 0.6.8
Please make the necessary changes and fix the following:
  • Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 393 characters long)

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
No dangerous file extensions were detected1,435 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP174321051,359
CSS117676

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.23
Average class complexity12.00
▷ Minimum class complexity1.00
▷ Maximum class complexity33.00
Average method complexity2.15
▷ Minimum method complexity1.00
▷ Maximum method complexity21.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes7
▷ Abstract classes00.00%
▷ Concrete classes7100.00%
▷ Final classes00.00%
Methods63
▷ Static methods00.00%
▷ Public methods5384.13%
▷ Protected methods1015.87%
▷ Private methods00.00%
Functions38
▷ Named functions3694.74%
▷ Anonymous functions25.26%
Constants14
▷ Global constants14100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/img/pushlive50x50.png3.59KB2.18KB▼ 39.20%