10% odvut-author-bio

Code Review | oDvut Author Bio

WordPress plugin oDvut Author Bio scored10%from 54 tests.

About plugin

  • Plugin page: odvut-author-bio
  • Plugin version: 0.01
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Sep 5, 2014
  • Latest release: Sep 5, 2014
  • Number of updates: 10
  • Update frequency: every 0.1 days
  • Top authors: enroxxa (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

200+ active /2,353 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The following installer errors require your attention
  • The plugin did not install without errors
    • > Deprecated in wp-content/plugins/odvut-author-bio/index.php+20
    Methods with the same name as their class will not be constructors in a future version of PHP; wp_my_plugin has a deprecated constructor

Server metrics [RAM: ▼1.91MB] [CPU: ▼50.86ms] Passed 4 tests

An overview of server-side resources used by oDvut Author Bio
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.08 ▼1.384.25 ▼40.90
Dashboard /wp-admin2.10 ▼1.205.21 ▼43.08
Posts /wp-admin/edit.php2.10 ▼1.265.50 ▼42.51
Add New Post /wp-admin/post-new.php2.10 ▼3.7921.97 ▼76.94
Media Library /wp-admin/upload.php2.10 ▼1.136.27 ▼28.59

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

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 7 new options
New WordPress options
widget_recent-posts
theysaidso_admin_options
can_compress_scripts
db_upgraded
widget_recent-comments
widget_wp_my_plugin
widget_theysaidso_widget

Browser metrics Passed 4 tests

This is an overview of browser requirements for oDvut Author Bio
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,866 ▲8014.28 ▼0.011.79 ▼0.2143.63 ▼2.14
Dashboard /wp-admin2,268 ▲905.66 ▲0.0185.02 ▼33.3690.57 ▲44.15
Posts /wp-admin/edit.php2,097 ▼62.03 ▲0.0136.02 ▼4.0933.40 ▼4.13
Add New Post /wp-admin/post-new.php1,526 ▼1023.24 ▲0.37603.03 ▼127.3164.67 ▲3.55
Media Library /wp-admin/upload.php1,394 ▼34.19 ▲0.0595.92 ▼22.9643.59 ▼6.88

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Deprecated in wp-content/plugins/odvut-author-bio/index.php+20
    Methods with the same name as their class will not be constructors in a future version of PHP; wp_my_plugin has a deprecated constructor
  • This plugin does not fully uninstall, leaving 7 options in the database
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_wp_my_plugin

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
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_action() in wp-content/plugins/odvut-author-bio/index.php:12

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === odvut-author-bio === )
  • Screenshots: Screenshot #5 (screenshot-4.png) image required
You can take inspiration from this readme.txt

odvut-author-bio/index.php 92% from 13 tests

The entry point to "oDvut Author Bio" version 0.01 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("odvut-author-bio.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin154 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP13632120
CSS10034

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.09
Average class complexity7.00
▷ Minimum class complexity7.00
▷ Maximum class complexity7.00
Average method complexity2.50
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions3
▷ Named functions3100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
7 PNG files occupy 0.23MB with 0.14MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-3.png40.90KB13.84KB▼ 66.16%
images/ln.png33.35KB11.10KB▼ 66.71%
assets/screenshot-2.png39.97KB13.61KB▼ 65.95%
assets/screenshot-4.png6.78KB4.36KB▼ 35.74%
images/tw.png30.99KB10.65KB▼ 65.65%