77% wp-biographia

Code Review | WP Biographia

WordPress plugin WP Biographia scored77%from 54 tests.

About plugin

  • Plugin page: wp-biographia
  • Plugin version: 4.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.6
  • WordPress version: 6.3.1
  • First release: Aug 3, 2011
  • Latest release: Dec 30, 2020
  • Number of updates: 44
  • Update frequency: every 78.1 days
  • Top authors: vicchi (100%)

Code review

54 tests

User reviews

22 reviews

Install metrics

1,000+ active /70,619 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.73MB] [CPU: ▲3.67ms] Passed 4 tests

This is a short check of server-side resources used by WP Biographia
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /4.15 ▲0.6945.73 ▲1.35
Dashboard /wp-admin4.07 ▲0.7750.92 ▲1.70
Posts /wp-admin/edit.php4.13 ▲0.7753.68 ▲6.45
Add New Post /wp-admin/post-new.php6.63 ▲0.75100.94 ▲10.26
Media Library /wp-admin/upload.php3.93 ▲0.7141.69 ▲5.16
WP Biographia /wp-admin/options-general.php?page=wp-biographia/wp-biographia.php3.9235.27

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 256 new files
Database: no new tables, 8 new options
New WordPress options
widget_recent-posts
can_compress_scripts
widget_recent-comments
widget_wp_biographiawidget
theysaidso_admin_options
db_upgraded
wp_biographia_settings
widget_theysaidso_widget

Browser metrics Passed 4 tests

An overview of browser requirements for WP Biographia
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,889 ▲13213.37 ▼1.191.58 ▼0.6843.90 ▼2.20
Dashboard /wp-admin2,266 ▲785.03 ▼0.86106.90 ▲5.9843.03 ▲2.72
Posts /wp-admin/edit.php2,149 ▲602.36 ▲0.3447.63 ▲10.9237.99 ▼0.32
Add New Post /wp-admin/post-new.php6,320 ▲4,79619.05 ▼4.23828.48 ▲126.6749.97 ▼4.35
Media Library /wp-admin/upload.php1,451 ▲604.38 ▲0.19100.76 ▼4.9844.71 ▼1.57
WP Biographia /wp-admin/options-general.php?page=wp-biographia/wp-biographia.php1,3135.0163.4154.05

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
  • This plugin did not uninstall successfully, leaving 7 options in the database
    • db_upgraded
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_wp_biographiawidget
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
  • 3× PHP files output text when accessed directly:
    • > /wp-content/plugins/wp-biographia/includes/wp-biographia-widget.php
    • > /wp-content/plugins/wp-biographia/includes/wp-biographia-tags.php
    • > /wp-content/plugins/wp-biographia/includes/wp-biographia-pointers.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/wp-biographia/wp-biographia.php:69

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% 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:
  • Tags: Please delete some tags, you are using 32 tag instead of maximum 10
  • Screenshots: Screenshot #1 (Sample Widget Output) image not found
Please take inspiration from this readme.txt

wp-biographia/wp-biographia.php 92% from 13 tests

The main file in "WP Biographia" v. 4.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
  • Description: Please keep the plugin description shorter than 140 characters (currently 158 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
There were no executable files found in this plugin7,437 lines of code in 24 files:
LanguageFilesBlank linesComment linesLines of code
PHP71,0111,0394,450
PO File39591,3102,532
CSS8423269
JavaScript4330179
HTML2007

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity125.00
▷ Minimum class complexity1.00
▷ Maximum class complexity568.00
Average method complexity8.47
▷ Minimum method complexity1.00
▷ Maximum method complexity90.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods83
▷ Static methods22.41%
▷ Public methods8096.39%
▷ Protected methods00.00%
▷ Private methods33.61%
Functions19
▷ Named functions19100.00%
▷ Anonymous functions00.00%
Constants12
▷ Global constants325.00%
▷ Class constants975.00%
▷ Public constants9100.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
186 PNG files occupy 2.45MB with 0.46MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/icons/square/twitter.png6.06KB6.84KB0.00%
public/images/success.png0.43KB0.49KB0.00%
images/linkedin.png49.44KB26.71KB▼ 45.98%
public/icons/round/round_vine.png8.53KB9.80KB0.00%
public/icons/archived/facebook.png46.57KB24.38KB▼ 47.64%