78% wp-all-share

Code Review | WP All Share

WordPress plugin WP All Share scored78%from 54 tests.

About plugin

  • Plugin page: wp-all-share
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.8-4.5.3
  • WordPress version: 6.3.1
  • First release: Jan 12, 2016
  • Latest release: Aug 14, 2016
  • Number of updates: 17
  • Update frequency: every 12.8 days
  • Top authors: abiralneupane (82.35%)Kanchha Kaji Prajapati (23.53%)

Code review

54 tests

User reviews

1 review

Install metrics

20+ active /2,290 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 gracefully, with no errors

Server metrics [RAM: ▲0.09MB] [CPU: ▲0.36ms] Passed 4 tests

An overview of server-side resources used by WP All Share
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.56 ▲0.1045.44 ▲5.49
Dashboard /wp-admin3.39 ▲0.0944.51 ▼7.16
Posts /wp-admin/edit.php3.51 ▲0.1547.99 ▲4.84
Add New Post /wp-admin/post-new.php5.97 ▲0.0988.67 ▲1.28
Media Library /wp-admin/upload.php3.32 ▲0.0936.86 ▲2.48

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options
widget_theysaidso_widget
widget_wpas_widget
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
db_upgraded

Browser metrics Passed 4 tests

WP All Share: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲5813.58 ▼0.801.60 ▼0.1540.15 ▼6.53
Dashboard /wp-admin2,209 ▲245.89 ▲0.99105.89 ▲3.5940.75 ▼4.25
Posts /wp-admin/edit.php2,089 ▼02.00 ▼0.0238.43 ▲4.3334.87 ▼2.24
Add New Post /wp-admin/post-new.php1,542 ▲2818.17 ▲0.69603.17 ▲9.4251.45 ▼10.91
Media Library /wp-admin/upload.php1,388 ▼34.26 ▲0.0392.85 ▼10.0042.51 ▼0.23

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin does not fully uninstall, leaving 7 options in the database
    • widget_wpas_widget
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected

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
The following issues need your attention
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-all-share/wp-all-share.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-all-share/classes/class.widgets.php:23

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

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots need descriptions #2, #3, #4 in wp-all-share/assets to your readme.txt
  • Tags: There are too many tags (11 tag instead of maximum 10)
Please take inspiration from this readme.txt

wp-all-share/wp-all-share.php 92% from 13 tests

The primary PHP file in "WP All Share" version 1.4 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin5,316 lines of code in 17 files:
LanguageFilesBlank linesComment linesLines of code
SVG2004,258
HTML11210491
PHP66913325
CSS52615226
JavaScript34816

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.48
Average class complexity17.80
▷ Minimum class complexity2.00
▷ Maximum class complexity37.00
Average method complexity5.94
▷ Minimum method complexity1.00
▷ Maximum method complexity36.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods17
▷ Static methods423.53%
▷ Public methods1694.12%
▷ Protected methods00.00%
▷ Private methods15.88%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.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
No PNG files were detected