74% pushall

Code Review | PushAll

WordPress plugin PushAll scored 74% from 54 tests.

About plugin

  • Plugin page: pushall
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.9-4.5.3
  • WordPress version: 6.3.1
  • First release: Oct 2, 2015
  • Latest release: Jun 23, 2016
  • Number of updates: 32
  • Update frequency: every 8.3 days
  • Top authors: iezhik (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active / 2,066 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

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

This is a short check of server-side resources used by PushAll
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.11 ▼6.22
Dashboard /wp-admin3.32 ▲0.0243.67 ▼4.83
Posts /wp-admin/edit.php3.37 ▲0.0247.18 ▼4.34
Add New Post /wp-admin/post-new.php5.90 ▲0.0179.28 ▼15.71
Media Library /wp-admin/upload.php3.24 ▲0.0132.60 ▼3.90
PushAll /wp-admin/options-general.php?page=pushall3.2323.99

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: 1 new table, 7 new options
New tables
wp_pushall_log
New WordPress options
db_upgraded
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
pushall_db_version
widget_recent-comments

Browser metrics Passed 4 tests

An overview of browser requirements for PushAll
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,806 ▲4913.31 ▼1.171.59 ▼0.4338.32 ▼6.62
Dashboard /wp-admin2,215 ▲604.85 ▼0.79115.00 ▲3.2242.75 ▼2.03
Posts /wp-admin/edit.php2,095 ▲62.03 ▲0.0442.49 ▲6.1233.82 ▼2.28
Add New Post /wp-admin/post-new.php1,537 ▲323.36 ▲0.65660.74 ▲8.2157.57 ▲1.86
Media Library /wp-admin/upload.php1,391 ▲124.31 ▲0.1291.92 ▼2.8339.94 ▼5.16
PushAll /wp-admin/options-general.php?page=pushall7952.0627.8432.31

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_pushall_log
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget
    • db_upgraded
    • pushall_db_version
    • widget_recent-comments
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not 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
  • 6× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Class 'PushAll_WP_List_Table' not found in wp-content/plugins/pushall/includes/class-pushall-logs-list.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/pushall/views/pushall-admin_logs_page.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/pushall/views/pushall-admin_menu_settings.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/pushall/views/pushall-post_meta_boxes.php:27
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/pushall/includes/class-pushall-widget.php:10
    • > PHP Notice
      Undefined variable: pushall_active in wp-content/plugins/pushall/views/pushall-post_meta_boxes.php on line 10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that need to be fixed:
  • Tags: Please reduce the number of tags, currently 15 tag instead of maximum 10
You can take inspiration from this readme.txt

pushall/pushall.php Passed 13 tests

The primary PHP file in "PushAll" version 1.1.1 is used by WordPress to initiate all plugin functionality
58 characters long description:
Send Push notifications from Wordpress via PushAll service

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
Everything looks great! No dangerous files found in this plugin1,357 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP92917341,196
PO File16474154
CSS1107

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity36.60
▷ Minimum class complexity8.00
▷ Maximum class complexity117.00
Average method complexity3.09
▷ Minimum method complexity1.00
▷ Maximum method complexity19.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods85
▷ Static methods2124.71%
▷ Public methods5665.88%
▷ Protected methods2934.12%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants7
▷ Global constants7100.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 are no PNG files in this plugin