68% yaps-yet-another-push-service

Code Review | Yet Another Push Service

WordPress plugin Yet Another Push Service scored68%from 54 tests.

About plugin

  • Plugin page: yaps-yet-another-...
  • Plugin version: 0.1.22
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-3.4
  • WordPress version: 6.3.1
  • First release: Jul 7, 2013
  • Latest release: Jul 7, 2013
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: marcel.kussin (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /736 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.11MB] [CPU: ▲0.12ms] Passed 4 tests

This is a short check of server-side resources used by Yet Another Push Service
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.57 ▲0.1137.33 ▼3.92
Dashboard /wp-admin3.42 ▲0.1150.56 ▲1.74
Posts /wp-admin/edit.php3.53 ▲0.1851.75 ▲2.84
Add New Post /wp-admin/post-new.php6.00 ▲0.1193.42 ▼0.18
Media Library /wp-admin/upload.php3.34 ▲0.1140.16 ▲9.28
YAPS Options page /wp-admin/options-general.php?page=yaps-yet-another-push-service/yaps.php3.2831.79

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 6 new files
Database: 1 new table, 7 new options
New tables
wp_yaps_devices
New WordPress options
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget
jal_db_version
can_compress_scripts
widget_recent-posts
db_upgraded

Browser metrics Passed 4 tests

Yet Another Push Service: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲4714.48 ▲0.311.66 ▼0.4743.68 ▼2.98
Dashboard /wp-admin2,207 ▲194.89 ▲0.00121.77 ▲17.3856.24 ▲15.10
Posts /wp-admin/edit.php2,096 ▲41.99 ▼0.0339.40 ▲0.6734.22 ▼0.66
Add New Post /wp-admin/post-new.php1,536 ▲323.35 ▲0.14655.19 ▼20.2555.20 ▼6.09
Media Library /wp-admin/upload.php1,395 ▲74.15 ▼0.12109.34 ▲12.7450.50 ▲6.21
YAPS Options page /wp-admin/options-general.php?page=yaps-yet-another-push-service/yaps.php9142.0824.6035.66

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/yaps-yet-another-push-service/yaps.php+111
    Trying to access array offset on value of type bool
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • widget_recent-comments
    • theysaidso_admin_options
    • widget_recent-posts
    • can_compress_scripts
    • widget_theysaidso_widget
    • jal_db_version
    • db_upgraded

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=yaps-yet-another-push-service/yaps.php
    • > User deprecated in wp-includes/functions.php+5463
    Function screen_icon is deprecated since version 3.8.0 with no alternative available.
    • > GET request to /wp-admin/options-general.php?page=yaps-yet-another-push-service/yaps.php
    • > User deprecated in wp-includes/functions.php+5463
    Function get_screen_icon is deprecated since version 3.8.0 with no alternative available.
  • 11 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=yaps-yet-another-push-service/yaps.php
    • > Notice in wp-content/plugins/yaps-yet-another-push-service/yaps.php+480
    Trying to access array offset on value of type bool
  • 4 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=yaps-yet-another-push-service/yaps.php
    • > Notice in wp-content/plugins/yaps-yet-another-push-service/yaps.php+466
    Undefined variable: checked

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
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/yaps-yet-another-push-service/yaps.php:36

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 90% from 29 tests

readme.txt 88% from 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
Please fix the following attributes:
  • Plugin Name: Please specify the plugin name on the first line ( === yaps-yet-another-push-service === )
  • Screenshots: Screenshot #1 (This shows the option-page) image not found
The official readme.txt is a good inspiration

yaps-yet-another-push-service/yaps.php 92% from 13 tests

The main file in "Yet Another Push Service" v. 0.1.22 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("yaps-yet-another-push-service.php" instead of "yaps.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
Success! There were no dangerous files found in this plugin541 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP315197529
JavaScript14712

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.29
Average class complexity7.00
▷ Minimum class complexity1.00
▷ Maximum class complexity13.00
Average method complexity2.33
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces1
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods00.00%
▷ Public methods1191.67%
▷ Protected methods00.00%
▷ Private methods18.33%
Functions35
▷ Named functions35100.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.09MB with 0.06MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png96.95KB30.94KB▼ 68.09%