78% pushly

Code Review | Pushly

WordPress plugin Pushly scored 78% from 54 tests.

About plugin

  • Plugin page: pushly
  • Plugin version: 1.1.3
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-6.0
  • WordPress version: 6.3.1
  • First release: Dec 13, 2019
  • Latest release: Jul 24, 2023
  • Number of updates: 25
  • Update frequency: every 52.8 days
  • Top authors: pushlydev (100%)

Code review

54 tests

User reviews

1 review

Install metrics

700+ active / 2,300 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▲0.66ms] Passed 4 tests

Analyzing server-side resources used by Pushly
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0243.60 ▲2.30
Dashboard /wp-admin3.33 ▲0.0348.64 ▼1.71
Posts /wp-admin/edit.php3.38 ▲0.0249.55 ▲0.75
Add New Post /wp-admin/post-new.php5.91 ▲0.0298.12 ▲1.32
Media Library /wp-admin/upload.php3.25 ▲0.0238.84 ▲3.98

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

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

Browser metrics Passed 4 tests

Pushly: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,816 ▲8113.22 ▼1.091.60 ▼0.2335.88 ▼5.14
Dashboard /wp-admin2,219 ▲314.87 ▼0.07109.59 ▼2.1550.21 ▲8.60
Posts /wp-admin/edit.php2,105 ▲162.01 ▼0.0038.66 ▼3.9936.78 ▲2.37
Add New Post /wp-admin/post-new.php1,546 ▲1723.14 ▲4.88670.51 ▲37.0149.33 ▼2.75
Media Library /wp-admin/upload.php1,407 ▲194.24 ▲0.0596.19 ▼2.7842.55 ▲0.66

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_recent-posts
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
The smoke test was a success, however most plugin functionality was not tested

SRP 0% 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 items
  • 5× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/pushly/classes/pushly-public.php
    • > /wp-content/plugins/pushly/views/templates/sdk.php
    • > /wp-content/plugins/pushly/classes/pushly-admin.php
    • > /wp-content/plugins/pushly/pushly.php
    • > /wp-content/plugins/pushly/assets/js/pushly-sdk-worker.js.php
  • 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/pushly/views/fields/domain_key.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_errors() in wp-content/plugins/pushly/views/templates/settings.php:2

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Plugin Name: Please specify the plugin name on the first line ( === pushly === )
You can look at the official readme.txt

pushly/pushly.php Passed 13 tests

The entry point to "Pushly" version 1.1.3 is a PHP file that has certain tags in its header comment area
70 characters long description:
Provide Pushly push notification capability to WordPress installations

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Success! There were no dangerous files found in this plugin135 lines of code in 8 files:
LanguageFilesBlank linesComment linesLines of code
PHP72718134
HTML1001

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.21
Average class complexity3.50
▷ Minimum class complexity3.00
▷ Maximum class complexity4.00
Average method complexity1.62
▷ Minimum method complexity1.00
▷ Maximum method complexity3.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods8
▷ Static methods8100.00%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants2100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin