83% pushed-push-notifications

Code Review | Pushed

WordPress plugin Pushed scored83%from 54 tests.

About plugin

  • Plugin page: pushed-push-notif...
  • Plugin version: 2.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.7
  • WordPress version: 6.3.1
  • First release: May 11, 2015
  • Latest release: Jan 10, 2017
  • Number of updates: 41
  • Update frequency: every 14.9 days
  • Top authors: pushed (100%)

Code review

54 tests

User reviews

1 review

Install metrics

40+ active /8,109 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully

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

Server-side resources used by Pushed
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1346.67 ▼5.40
Dashboard /wp-admin3.46 ▲0.1151.61 ▼10.69
Posts /wp-admin/edit.php3.57 ▲0.2153.11 ▲2.98
Add New Post /wp-admin/post-new.php6.03 ▲0.1598.04 ▼0.37
Media Library /wp-admin/upload.php3.38 ▲0.1537.87 ▲1.22
Pushed /wp-admin/options-general.php?page=pushed3.3537.04

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Pushed
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,823 ▲6213.22 ▼1.041.92 ▲0.0243.12 ▲3.90
Dashboard /wp-admin2,229 ▲234.82 ▼0.06118.12 ▲16.6944.06 ▲7.22
Posts /wp-admin/edit.php2,108 ▲52.03 ▲0.0540.73 ▼7.6835.19 ▼7.31
Add New Post /wp-admin/post-new.php6,249 ▲4,70918.92 ▼4.131,046.86 ▲435.2965.30 ▲4.88
Media Library /wp-admin/upload.php1,411 ▲144.26 ▲0.06100.07 ▼18.4847.28 ▼5.32
Pushed /wp-admin/options-general.php?page=pushed9532.1832.4339.13

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_recent-posts
    • widget_theysaidso_widget
    • widget_recent-comments
    • can_compress_scripts
    • db_upgraded
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Almost there! Just fix the following items
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pushed-push-notifications/settings.php:296
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pushed-push-notifications/settings.php:296

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (Pushed Administration Panel), #2 (Pushed Publishing Widget), #3 (Pushed.co Developer Panel (App Credentials highlighted))
Please take inspiration from this readme.txt

pushed-push-notifications/pushed.php 92% from 13 tests

The main file in "Pushed" v. 2.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("pushed-push-notifications.php" instead of "pushed.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
No dangerous file extensions were detected864 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP313164654
JavaScript1261146
CSS111058
HTML1006

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.33
Average class complexity4.67
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity2.10
▷ Minimum method complexity1.00
▷ Maximum method complexity7.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods20
▷ Static methods00.00%
▷ Public methods1995.00%
▷ Protected methods15.00%
▷ Private methods00.00%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
8 PNG files occupy 0.91MB with 0.52MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-2.png169.05KB73.03KB▼ 56.80%
assets/pushed_logo_wordpress_settings_page.png19.58KB10.63KB▼ 45.74%
assets/icon-128x128.png16.66KB7.85KB▼ 52.89%
assets/pushed_favicon_wordpress_edit_page.png43.81KB14.34KB▼ 67.27%
assets/banner-772x250.png255.05KB101.88KB▼ 60.06%