84% phongmy-push-anything-to-social

Code Review | Push Anything To Social

WordPress plugin Push Anything To Social scored84%from 54 tests.

About plugin

  • Plugin page: phongmy-push-anyt...
  • Plugin version: 1.0
  • PHP compatiblity: 7.2+
  • PHP version: 7.4.16
  • WordPress compatibility: 7.1-5.8
  • WordPress version: 6.3.1
  • First release: Aug 18, 2021
  • Latest release: Sep 6, 2021
  • Number of updates: 8
  • Update frequency: every 2.5 days
  • Top authors: thienduc0105 (100%)

Code review

54 tests

User reviews

1 review

Install metrics

30+ active /410 total downloads

Benchmarks

Plugin footprint 82% 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.05MB] [CPU: ▲0.15ms] Passed 4 tests

An overview of server-side resources used by Push Anything To Social
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0543.25 ▲1.48
Dashboard /wp-admin3.36 ▲0.0550.63 ▼1.90
Posts /wp-admin/edit.php3.41 ▲0.0551.34 ▼0.03
Add New Post /wp-admin/post-new.php5.94 ▲0.0596.02 ▲1.04
Media Library /wp-admin/upload.php3.28 ▲0.0536.06 ▲1.85

Server storage [IO: ▲0.38MB] [DB: ▲0.00MB] 67% from 3 tests

Input-output and database impact of this plugin
It is recommended to fix the following issues
  • Illegal file modification found: 1 file (0.00KB) outside of "wp-content/plugins/phongmy-push-anything-to-social/" and "wp-content/uploads/"
    • (new file) "wp-content/plugins/phongmy-push-anything-to-social/assets/banner-772\303\227250.png"
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Push Anything To Social
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,815 ▲5413.55 ▼0.881.71 ▼0.2542.65 ▼0.13
Dashboard /wp-admin2,221 ▲215.81 ▼0.0398.68 ▼4.4938.95 ▼4.13
Posts /wp-admin/edit.php2,100 ▼02.01 ▲0.0440.92 ▲0.7835.87 ▼1.22
Add New Post /wp-admin/post-new.php1,526 ▼1517.46 ▼6.04657.93 ▲33.4261.28 ▲8.74
Media Library /wp-admin/upload.php1,391 ▼64.20 ▼0.0499.08 ▼18.7043.79 ▼4.08

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
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

SRP 50% 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
Please fix the following
  • 2× PHP files output text when accessed directly:
    • > /wp-content/plugins/phongmy-push-anything-to-social/phongmy-push-anything-to-social.php
    • > /wp-content/plugins/phongmy-push-anything-to-social/donate.php

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
5 plugin tags: woocommerce, whatsapp order, telegram order, facebook bot, woocommerce to facebook messenger

phongmy-push-anything-to-social/phongmy-push-anything-to-social.php 92% from 13 tests

"Push Anything To Social" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
  • Text Domain: The text domain follows the same naming rules as the plugin slug: lowercase characters and dashes

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
There were no executable files found in this plugin408 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP22912333
CSS10075

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.35
Average class complexity38.00
▷ Minimum class complexity38.00
▷ Maximum class complexity38.00
Average method complexity4.08
▷ Minimum method complexity1.00
▷ Maximum method complexity11.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods12
▷ Static methods18.33%
▷ Public methods1191.67%
▷ Protected methods00.00%
▷ Private methods18.33%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 0.25MB with 0.11MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-1.png84.23KB41.83KB▼ 50.33%
assets/icon-128x128.png5.04KB3.67KB▼ 27.26%
assets/icon-256x256.png5.04KB3.67KB▼ 27.26%
assets/banner-772×250.png71.84KB27.86KB▼ 61.22%
assets/screenshot-2.png93.11KB43.34KB▼ 53.45%