83% push-world

Code Review | Push World

WordPress plugin Push World scored83%from 54 tests.

About plugin

  • Plugin page: push-world
  • Plugin version: 2.0.2
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.8
  • WordPress version: 6.3.1
  • First release: Jan 23, 2017
  • Latest release: Jun 26, 2017
  • Number of updates: 19
  • Update frequency: every 10.6 days
  • Top authors: pushworld (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,372 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

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

This is a short check of server-side resources used by Push World
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1141.01 ▲1.72
Dashboard /wp-admin3.41 ▲0.1047.64 ▲0.31
Posts /wp-admin/edit.php3.52 ▲0.1644.70 ▼4.07
Add New Post /wp-admin/post-new.php5.99 ▲0.10110.98 ▲15.00
Media Library /wp-admin/upload.php3.33 ▲0.1032.81 ▼0.61

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 33 new files
Database: no new tables, 91 new options
New WordPress options
pushworld_failed_action1_url
pushworld_abandoned_timeout
pushworld_processing_image
pushworld_failed_action1_title
pushworld_pending_action1_title
pushworld_cancelled_url
pushworld_pending_action2_title
pushworld_processing_text
pushworld_completed_image
pushworld_on-hold_image
...

Browser metrics Passed 4 tests

This is an overview of browser requirements for Push World
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,835 ▲8913.58 ▼1.021.73 ▲0.1345.54 ▲0.84
Dashboard /wp-admin2,244 ▲595.85 ▼0.02110.69 ▼4.1889.78 ▲42.98
Posts /wp-admin/edit.php2,124 ▲382.00 ▲0.0135.00 ▼3.7032.91 ▼2.23
Add New Post /wp-admin/post-new.php1,544 ▲1623.08 ▲4.62745.59 ▲119.5056.97 ▲5.10
Media Library /wp-admin/upload.php1,423 ▲354.10 ▼0.0797.24 ▼24.5477.17 ▲28.53

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options were found after uninstall: 91 options
    • pushworld_abandoned_action2_url
    • pushworld_failed_text
    • pushworld_refunded_action1_title
    • pushworld_completed_title
    • pushworld_failed_image
    • pushworld_failed_action2_url
    • pushworld_default_title
    • pushworld_failed_action1_url
    • pushworld_on-hold_action1_url
    • pushworld_refunded_title
    • ...

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 no errors were found, this is by no means 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
Almost there! Just fix the following items
  • 10× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'pushworld\\api\\Exception\\PushWorldApiException' not found in wp-content/plugins/push-world/core/push.world-api-client/Exception/PushWorldApiSaveAccessTokenException.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/push-world/core/push.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/push-world/push-world.php:15
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/push-world/core/cron.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'pushworld\\api\\Exception\\PushWorldApiException' not found in wp-content/plugins/push-world/core/push.world-api-client/Exception/PushWorldApiForbbidenException.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'pushworld\\api\\Exception\\PushWorldApiException' not found in wp-content/plugins/push-world/core/push.world-api-client/Exception/PushWorldApiValidationException.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'pushworld\\api\\Exception\\PushWorldApiException' not found in wp-content/plugins/push-world/core/push.world-api-client/Exception/PushWorldApiGetTokenException.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'WC_Integration' not found in wp-content/plugins/push-world/core/pw-wc-integration.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function load_plugin_textdomain() in wp-content/plugins/push-world/core/core.php:5
    • > PHP Fatal error
      Uncaught Error: Interface 'pushworld\\api\\PushWorldApiInterface' not found in wp-content/plugins/push-world/core/push.world-api-client/PushWorldApi.php:11

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
  • Tags: Please reduce the number of tags, currently 30 tag instead of maximum 10
  • Screenshots: Screenshot #1 (Put your embed code to plugin field.) image not found
The official readme.txt is a good inspiration

push-world/push-world.php 92% from 13 tests

The main PHP file in "Push World" ver. 2.0.2 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
  • Description: Keep the plugin description shorter than 140 characters (currently 166 characters long)

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
Good job! No executable or dangerous file extensions detected3,232 lines of code in 20 files:
LanguageFilesBlank linesComment linesLines of code
PHP134372772,071
CSS24233601
JavaScript37632287
PO File1111134256
SVG10017

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.40
Average class complexity15.60
▷ Minimum class complexity1.00
▷ Maximum class complexity74.00
Average method complexity3.70
▷ Minimum method complexity1.00
▷ Maximum method complexity20.00
Code structure
Namespaces2
Interfaces1
Traits0
Classes9
▷ Abstract classes00.00%
▷ Concrete classes9100.00%
▷ Final classes00.00%
Methods55
▷ Static methods2036.36%
▷ Public methods4989.09%
▷ Protected methods00.00%
▷ Private methods610.91%
Functions14
▷ Named functions14100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
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
assets/imgs/logo-pw.png3.81KB2.67KB▼ 29.97%