94% admin-social-shares

Code Review | WordiZ - Admin Social Shares

WordPress plugin WordiZ - Admin Social Shares scored 94% from 54 tests.

About plugin

  • Plugin page: admin-social-shares
  • Plugin version: 1.1
  • PHP version: 7.4.16
  • WordPress compatibility: 3.1-3.6
  • WordPress version: 5.9.2
  • First release: Sep 5, 2013
  • Latest release: Sep 10, 2013
  • Number of updates: 15
  • Update frequency: every 0.4 days
  • Top authors: tanzaho (100%)

Code review

54 tests

User reviews

3 reviews

Install metrics

40+ active / 2,764 total downloads


Plugin footprint Passed 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.01MB] [CPU: ▼306.02ms] Passed 4 tests

Server-side resources used by WordiZ - Admin Social Shares
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.0275.60 ▲21.11
Dashboard /wp-admin3.42 ▲0.0140.54 ▲2.55
Posts /wp-admin/edit.php3.66 ▲0.0149.38 ▲5.45
Add New Post /wp-admin/post-new.php6.89 ▼0.0899.61 ▼1,253.17
Media Library /wp-admin/upload.php3.31 ▲0.0152.34 ▲21.91

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

A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for WordiZ - Admin Social Shares
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,763 ▲915.79 ▲0.126.35 ▼0.282.31 ▼0.66
Dashboard /wp-admin2,892 ▲376.13 ▼0.04119.83 ▼16.84154.79 ▼11.56
Posts /wp-admin/edit.php2,721 ▲333.46 ▲0.1188.04 ▲23.23145.66 ▲0.21
Add New Post /wp-admin/post-new.php1,668 ▼10518.06 ▼3.41420.88 ▼79.14176.79 ▼24.60
Media Library /wp-admin/upload.php1,701 ▲65.47 ▼0.03143.16 ▼13.18184.37 ▼33.58

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The plugin uninstalled successfully, without leaving any zombie files or tables

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
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 take a closer look at the following
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/admin-social-shares/admin-social-shares.php:44

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser issues were found


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
  • Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

admin-social-shares/admin-social-shares.php 92% from 13 tests

The entry point to "WordiZ - Admin Social Shares" version 1.1 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Description: Please don't use more than 140 characters for the plugin description (currently 230 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected82 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.12
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions4100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png26.58KB17.49KB▼ 34.19%