83% wp30-by-who

Code Review | WP30 By Who

WordPress plugin WP30 By Who scored83%from 54 tests.

About plugin

  • Plugin page: wp30-by-who
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3-4.9.0
  • WordPress version: 6.3.1
  • First release: Nov 25, 2017
  • Latest release: Dec 16, 2017
  • Number of updates: 6
  • Update frequency: every 4.2 days
  • Top authors: terrytsang (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /538 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully

Server metrics [RAM: ▲0.14MB] [CPU: ▼5.25ms] Passed 4 tests

Server-side resources used by WP30 By Who
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.59 ▲0.1338.14 ▼4.24
Dashboard /wp-admin3.46 ▲0.1146.40 ▼12.89
Posts /wp-admin/edit.php3.57 ▲0.2143.16 ▼5.61
Add New Post /wp-admin/post-new.php6.06 ▲0.1797.59 ▲1.74
Media Library /wp-admin/upload.php3.38 ▲0.1537.29 ▲5.41
WP30 /wp-admin/admin.php?page=wp303.3529.47
By Who /wp-admin/admin.php?page=wp30-by-who/admin/class-wp30-by-who-settings.php/by-who3.3531.20

Server storage [IO: ▲1.30MB] [DB: ▲0.07MB] Passed 3 tests

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 42 new files
Database: no new tables, 9 new options
New WordPress options
wp30_by_who_input_settings
wp30_by_who_display_options
widget_recent-comments
db_upgraded
wp30_by_who_social_options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WP30 By Who
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,931 ▲18513.55 ▼0.836.10 ▲4.3547.55 ▲3.49
Dashboard /wp-admin2,237 ▲524.86 ▼1.01106.24 ▲1.4441.91 ▲2.17
Posts /wp-admin/edit.php2,120 ▲342.01 ▲0.0133.43 ▼6.3333.04 ▼3.09
Add New Post /wp-admin/post-new.php1,540 ▲2123.25 ▼0.29657.21 ▼15.4259.38 ▲1.54
Media Library /wp-admin/upload.php1,422 ▲344.23 ▲0.0296.88 ▼7.5143.11 ▼5.70
WP30 /wp-admin/admin.php?page=wp307932.1723.5325.31
By Who /wp-admin/admin.php?page=wp30-by-who/admin/class-wp30-by-who-settings.php/by-who8492.0725.0628.99

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 9 options
    • widget_theysaidso_widget
    • wp30_by_who_input_settings
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • wp30_by_who_social_options
    • widget_recent-comments
    • wp30_by_who_display_options
    • theysaidso_admin_options

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
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following items
  • 2× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/wp30-by-who/admin/partials/wp30-by-who-admin-display.php
    • > /wp-content/plugins/wp30-by-who/public/partials/wp30-by-who-public-display.php

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 88% from 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need your attention:
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === wp30-by-who === )
  • Screenshots: Please add images for these screenshots: #1 (Website with bottom "By Who" bar), #2 (Settings page at WP30 > By Who), #3 (Add all your social media URL)
Please take inspiration from this readme.txt

wp30-by-who/wp30-by-who.php Passed 13 tests

The principal PHP file in "WP30 By Who" v. 1.0.0 is loaded by WordPress automatically on each request
54 characters long description:
A footer option for text label with social media links

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected640 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP13305687609
CSS321125
JavaScript24546

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.15
Average class complexity5.62
▷ Minimum class complexity1.00
▷ Maximum class complexity26.00
Average method complexity1.69
▷ Minimum method complexity1.00
▷ Maximum method complexity10.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes8
▷ Abstract classes00.00%
▷ Concrete classes8100.00%
▷ Final classes00.00%
Methods54
▷ Static methods23.70%
▷ Public methods4888.89%
▷ Protected methods00.00%
▷ Private methods611.11%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
17 PNG files occupy 1.20MB with 0.44MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png1,024.64KB332.93KB▼ 67.51%
public/images/social/googleplus.png0.64KB0.88KB0.00%
screenshot-3.png112.96KB31.79KB▼ 71.85%
public/images/social/grey/instagram.png1.23KB0.96KB▼ 22.20%
public/images/social/grey/twitter.png1.24KB0.96KB▼ 23.02%