66% xpandable-author-tab

Code Review | XPandable Author Tab

WordPress plugin XPandable Author Tab scored66%from 54 tests.

About plugin

  • Plugin page: xpandable-author-tab
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 2.9-3.5.1
  • WordPress version: 6.3.1
  • First release: Oct 28, 2010
  • Latest release: May 15, 2013
  • Number of updates: 7
  • Update frequency: every 132.9 days
  • Top authors: SantaBarbaraSurfer (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /3,379 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.10MB] [CPU: ▼5.21ms] Passed 4 tests

This is a short check of server-side resources used by XPandable Author Tab
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0948.44 ▲6.28
Dashboard /wp-admin3.41 ▲0.1156.86 ▲9.98
Posts /wp-admin/edit.php3.52 ▲0.1751.74 ▼7.40
Add New Post /wp-admin/post-new.php5.99 ▲0.1189.24 ▼21.62
Media Library /wp-admin/upload.php3.33 ▲0.1141.52 ▲1.90
Registration /wp-admin/admin.php?page=XPATRegistration3.3036.12
XP Author Tab /wp-admin/admin.php?page=XPandableAuthorTabSettings3.3035.61
Help /wp-admin/admin.php?page=XPATHelp3.3036.89
Effects Settings /wp-admin/admin.php?page=XPATEffectsSettings3.3039.65
Shortcode /wp-admin/admin.php?page=XPATShortcodes3.3033.77
Stylesheet /wp-admin/admin.php?page=XPATStylesheet3.2833.35
Tech Support /wp-admin/admin.php?page=XPATTechSupport3.3035.66

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
theysaidso_admin_options
can_compress_scripts

Browser metrics Passed 4 tests

A check of browser resources used by XPandable Author Tab
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,842 ▲8114.35 ▲0.001.78 ▲0.0541.99 ▼3.89
Dashboard /wp-admin2,246 ▲665.56 ▼0.1192.87 ▲2.7894.74 ▲54.40
Posts /wp-admin/edit.php2,148 ▲481.97 ▼0.0133.91 ▼2.6334.80 ▼3.45
Add New Post /wp-admin/post-new.php1,590 ▲6422.88 ▼0.07732.03 ▲41.1260.99 ▼5.16
Media Library /wp-admin/upload.php1,445 ▲484.11 ▼0.0397.40 ▼22.7581.53 ▲33.36
Registration /wp-admin/admin.php?page=XPATRegistration8882.1925.9225.23
XP Author Tab /wp-admin/admin.php?page=XPandableAuthorTabSettings8762.1524.3725.98
Help /wp-admin/admin.php?page=XPATHelp1,5098.27205.3365.38
Effects Settings /wp-admin/admin.php?page=XPATEffectsSettings8542.1726.8228.08
Shortcode /wp-admin/admin.php?page=XPATShortcodes8242.0027.1626.46
Stylesheet /wp-admin/admin.php?page=XPATStylesheet8511.9924.0330.43
Tech Support /wp-admin/admin.php?page=XPATTechSupport8311.9924.1927.14

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 0% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Smoke test failed, please fix the following
    • > GET request to /wp-admin/admin.php?page=XPATStylesheet
    • > Notice in wp-content/plugins/xpandable-author-tab/pages.php+134
    Undefined index: Restore
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=XPATTechSupport
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

SRP 0% 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 items
  • 1× GET requests to PHP files return non-empty strings:
    • > /wp-content/plugins/xpandable-author-tab/xpandable-author-tab.php
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/xpandable-author-tab/xpandable-author-tab-widget.php:15

User-side errors 0% from 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
  • 7 occurences, only the last one shown
    • > GET request to /wp-admin/admin.php?page=XPATTechSupport
    • > Network (severe)
    http://buildautomate.com/favicon.ico - Failed to load resource: net::ERR_NAME_NOT_RESOLVED
    • > GET request to /wp-admin/admin.php?page=XPandableAuthorTabSettings
    • > Network (severe)
    http://i1.wp.com/www.buildautomate.com/en/wp-content/uploads/2013/04/8.png?resize=300%2C50 - Failed to load resource: the server responded with a status of 400 (Bad Request)

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: These screenshots do not have images: #1 (User Display), #2 (CSS/Stylesheet Settings), #3 (Effects Settings for Drop Down), #4 (Built-in Help Support), #5 (Widget Configuration), #6 (Collapsed Widget State), #7 (Expanded Widget State)
You can look at the official readme.txt

xpandable-author-tab/xpandable-author-tab.php 92% from 13 tests

Analyzing the main PHP file in "XPandable Author Tab" version 2.0
It is important to fix the following:
  • Description: The description should be shorter than 140 characters (currently 825 characters long)

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
Success! There were no dangerous files found in this plugin714 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP410564597
CSS1116117

PHP code Passed 2 tests

An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.10
Average class complexity4.50
▷ Minimum class complexity3.00
▷ Maximum class complexity6.00
Average method complexity1.64
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes00.00%
Methods11
▷ Static methods763.64%
▷ Public methods872.73%
▷ Protected methods00.00%
▷ Private methods327.27%
Functions22
▷ Named functions22100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
14 PNG files occupy 0.72MB with 0.39MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-7.png173.30KB54.23KB▼ 68.71%
screenshot-6.png155.78KB48.34KB▼ 68.97%
images/yahoo.png1.80KB0.97KB▼ 45.90%
screenshot-2.png90.42KB26.60KB▼ 70.58%
images/facebook.png0.36KB0.29KB▼ 19.03%