78% wolfeo-pushy

Code Review | Wolfeo Pushy

WordPress plugin Wolfeo Pushy scored78%from 54 tests.

About plugin

  • Plugin page: wolfeo-pushy
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.1-4.7.1
  • WordPress version: 6.3.1
  • First release: Jan 12, 2017
  • Latest release: Feb 1, 2017
  • Number of updates: 7
  • Update frequency: every 2.7 days
  • Top authors: wolfeo (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /920 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

Server metrics [RAM: ▲0.07MB] [CPU: ▼6.27ms] Passed 4 tests

Analyzing server-side resources used by Wolfeo Pushy
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.0939.48 ▼5.79
Dashboard /wp-admin3.42 ▲0.0454.20 ▼11.98
Posts /wp-admin/edit.php3.54 ▲0.1453.01 ▲1.18
Add New Post /wp-admin/post-new.php6.00 ▲0.0895.25 ▼8.50
Media Library /wp-admin/upload.php3.35 ▲0.0839.63 ▲3.50
Wolfeo Pushy /wp-admin/options-general.php?page=wolfeo-pushy3.3235.28

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

Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 165 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-posts
widget_theysaidso_widget
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Wolfeo Pushy
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,801 ▲3014.34 ▼0.051.80 ▼0.1945.58 ▲3.47
Dashboard /wp-admin2,208 ▲285.62 ▼0.0791.43 ▲1.5142.64 ▲0.76
Posts /wp-admin/edit.php2,114 ▲141.99 ▼0.0140.97 ▲2.4337.83 ▼4.47
Add New Post /wp-admin/post-new.php1,535 ▲723.27 ▲0.31679.73 ▼13.3655.82 ▲2.54
Media Library /wp-admin/upload.php1,410 ▲104.22 ▼0.0498.13 ▼11.0146.49 ▲1.98
Wolfeo Pushy /wp-admin/options-general.php?page=wolfeo-pushy8111.6827.3529.92

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_theysaidso_widget
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
  • 2× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/wolfeo-pushy/public/partials/wolfeo-pushy-public-display.php
    • > /wp-content/plugins/wolfeo-pushy/admin/partials/wolfeo-pushy-admin-display.php
  • 64× GET requests to PHP files have triggered server-side errors or warnings (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wolfeo-pushy/vendor/guzzlehttp/psr7/tests/StreamWrapperTest.php:10
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wolfeo-pushy/vendor/guzzlehttp/psr7/tests/ServerRequestTest.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wolfeo-pushy/vendor/guzzlehttp/psr7/tests/BufferStreamTest.php:6
    • > PHP Fatal error
      Uncaught Error: Interface 'GuzzleHttp\\Promise\\PromiseInterface' not found in wp-content/plugins/wolfeo-pushy/vendor/guzzlehttp/promises/src/Coroutine.php:43
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wolfeo-pushy/vendor/guzzlehttp/psr7/src/Stream.php:11
    • > PHP Fatal error
      Uncaught Error: Class 'GuzzleHttp\\Exception\\RequestException' not found in wp-content/plugins/wolfeo-pushy/vendor/guzzlehttp/guzzle/src/Exception/TooManyRedirectsException.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wolfeo-pushy/vendor/guzzlehttp/psr7/tests/LazyOpenStreamTest.php:6
    • > PHP Fatal error
      Uncaught Error: Class 'PHPUnit_Framework_TestCase' not found in wp-content/plugins/wolfeo-pushy/vendor/guzzlehttp/psr7/tests/NoSeekStreamTest.php:11
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wolfeo-pushy/vendor/guzzlehttp/psr7/src/BufferStream.php:14
    • > PHP Fatal error
      Uncaught Error: Interface 'Psr\\Http\\Message\\StreamInterface' not found in wp-content/plugins/wolfeo-pushy/vendor/guzzlehttp/psr7/src/LazyOpenStream.php:10

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === wolfeo-pushy === )
  • Screenshots: Add an image for screenshot #1 (An overview of the settings panel within wp-admin.)
Please take inspiration from this readme.txt

wolfeo-pushy/wolfeo-pushy.php Passed 13 tests

The principal PHP file in "Wolfeo Pushy" v. 1.1 is loaded by WordPress automatically on each request
65 characters long description:
Use Wolfeo's Pushy notifications on your Wordpress pages & posts.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Success! There were no dangerous files found in this plugin14,530 lines of code in 146 files:
LanguageFilesBlank linesComment linesLines of code
PHP1202,1375,22211,018
Markdown984302,946
JSON600372
JavaScript3236970
YAML212049
make211031
CSS32827
XML10017

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.27
Average class complexity9.36
▷ Minimum class complexity1.00
▷ Maximum class complexity72.00
Average method complexity1.94
▷ Minimum method complexity1.00
▷ Maximum method complexity27.00
Code structure
Namespaces10
Interfaces14
Traits2
Classes91
▷ Abstract classes00.00%
▷ Concrete classes91100.00%
▷ Final classes55.49%
Methods930
▷ Static methods515.48%
▷ Public methods82188.28%
▷ Protected methods40.43%
▷ Private methods10511.29%
Functions182
▷ Named functions6133.52%
▷ Anonymous functions12166.48%
Constants36
▷ Global constants00.00%
▷ Class constants36100.00%
▷ Public constants36100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.21MB with 0.05MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png168.16KB42.32KB▼ 74.83%
assets/icon-256x256.png33.19KB35.03KB0.00%
assets/icon-128x128.png10.96KB11.35KB0.00%