78% wp-quick-push

Code Review | WP Quick Push

WordPress plugin WP Quick Push scored78%from 54 tests.

About plugin

  • Plugin page: wp-quick-push
  • Plugin version: 2.0.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.3-4.7.2
  • WordPress version: 6.3.1
  • First release: May 21, 2015
  • Latest release: Sep 2, 2017
  • Number of updates: 12
  • Update frequency: every 69.6 days
  • Top authors: akyjoe (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,007 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.01MB] [CPU: ▼6.20ms] Passed 4 tests

An overview of server-side resources used by WP Quick Push
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0138.55 ▼2.92
Dashboard /wp-admin3.33 ▲0.0251.25 ▲0.60
Posts /wp-admin/edit.php3.38 ▲0.0251.26 ▲0.04
Add New Post /wp-admin/post-new.php5.91 ▲0.0286.88 ▼22.51
Media Library /wp-admin/upload.php3.25 ▲0.0237.79 ▲2.89
Settings /wp-admin/admin.php?page=WP-Quick-Push-Settings3.2336.64
Quick Push /wp-admin/admin.php?page=WP-Quick-Push3.2433.34

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
theysaidso_admin_options
widget_recent-posts
db_upgraded
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for WP Quick Push
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,824 ▲3814.73 ▲0.371.71 ▼0.1541.98 ▼0.96
Dashboard /wp-admin2,230 ▲555.55 ▼0.0584.59 ▼14.1040.75 ▼4.06
Posts /wp-admin/edit.php2,138 ▲382.01 ▼0.0938.55 ▼3.4737.45 ▼0.54
Add New Post /wp-admin/post-new.php1,556 ▲15223.19 ▲5.31603.13 ▼9.5065.70 ▲21.18
Media Library /wp-admin/upload.php1,435 ▲354.22 ▲0.07103.70 ▼6.4345.86 ▼1.30
Settings /wp-admin/admin.php?page=WP-Quick-Push-Settings1,0042.1723.5730.85
Quick Push /wp-admin/admin.php?page=WP-Quick-Push1,0232.1624.3330.72

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
  • This plugin does not fully uninstall, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
These errors were triggered by the plugin
    • > GET request to /wp-admin/admin.php?page=WP-Quick-Push
    • > Notice in wp-content/plugins/wp-quick-push/includes/quickpush_sender.php+76
    Undefined variable: set_title
    • > GET request to /wp-admin/admin.php?page=WP-Quick-Push
    • > Notice in wp-content/plugins/wp-quick-push/includes/quickpush_sender.php+86
    Undefined variable: set_content

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 take a closer look at the following
  • 4× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/wp-quick-push/includes/quickpush_sender.php:72
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/wp-quick-push/index.php:65
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wp-quick-push/includes/quickpush_settings.php:40
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugins_url() in wp-content/plugins/wp-quick-push/includes/quickpush_sidebar.php:7

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 93% 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
10 plugin tags: wordpress push, onesignalcom, notification, push, windows...

wp-quick-push/index.php 85% from 13 tests

The main PHP script in "WP Quick Push" version 2.0.1 is automatically included on every request by WordPress
The following require your attention:
  • Description: Please keep the plugin description shorter than 140 characters (currently 308 characters long)
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("wp-quick-push.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin318 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP51835318

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.26
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%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
1 PNG file occupies 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
includes/images/pp_support.png5.64KB2.49KB▼ 55.86%