84% admin-social-shares

Code Review | WordiZ - Admin Social Shares

WordPress plugin WordiZ - Admin Social Shares scored84%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: 6.3.1
  • 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

30+ active /3,028 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by WordiZ - Admin Social Shares
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.14 ▼0.77
Dashboard /wp-admin3.32 ▲0.0146.25 ▼0.88
Posts /wp-admin/edit.php3.37 ▲0.0145.46 ▲2.22
Add New Post /wp-admin/post-new.php5.90 ▲0.0182.50 ▼7.82
Media Library /wp-admin/upload.php3.24 ▲0.0139.20 ▲3.75

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
theysaidso_admin_options
widget_recent-comments
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

This is 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 /2,789 ▲2814.23 ▲0.031.76 ▼0.1542.90 ▲6.33
Dashboard /wp-admin2,195 ▲205.57 ▼0.1482.89 ▼15.2936.85 ▼3.04
Posts /wp-admin/edit.php2,135 ▲562.41 ▲0.3847.80 ▲10.2031.15 ▲0.13
Add New Post /wp-admin/post-new.php1,528 ▼022.71 ▼0.61609.21 ▼35.7655.41 ▼7.86
Media Library /wp-admin/upload.php1,403 ▲34.21 ▲0.01102.15 ▼6.6645.50 ▼1.04

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 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
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
  • Tags: You are using too many tags: 11 tag instead of maximum 10
You can look at the official readme.txt

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

This is the main PHP file of "WordiZ - Admin Social Shares" version 1.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
You should first fix the following items:
  • Description: Please keep the plugin description shorter than 140 characters (currently 230 characters long)

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 plugin82 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP191549
JavaScript13830
Markdown1103

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
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
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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.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%