83% visual-biography-editor

Code Review | Visual Editor Biography

WordPress plugin Visual Editor Biography scored83%from 54 tests.

About plugin

  • Plugin page: visual-biography-...
  • Plugin version: 1.4
  • PHP version: 7.4.16
  • WordPress compatibility: 3.3.0-3.3.1
  • WordPress version: 6.3.1
  • First release: Jan 19, 2012
  • Latest release: Mar 22, 2012
  • Number of updates: 41
  • Update frequency: every 1.5 days
  • Top authors: kevinlearynet (100%)

Code review

54 tests

User reviews

12 reviews

Install metrics

1,000+ active /13,606 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
This plugin's installer ran successfully

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

An overview of server-side resources used by Visual Editor Biography
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0240.42 ▼6.40
Dashboard /wp-admin3.36 ▼0.0249.05 ▼18.89
Posts /wp-admin/edit.php3.41 ▲0.0255.20 ▲0.57
Add New Post /wp-admin/post-new.php5.94 ▲0.0293.68 ▼0.95
Media Library /wp-admin/upload.php3.29 ▲0.0239.64 ▲2.46

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

A short overview of filesystem and database impact
This plugin installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
db_upgraded
theysaidso_admin_options
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Visual Editor Biography
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,789 ▲314.41 ▲0.061.68 ▼0.1742.68 ▼0.32
Dashboard /wp-admin2,198 ▲215.59 ▼0.0190.59 ▲1.6647.68 ▲4.59
Posts /wp-admin/edit.php2,100 ▼31.98 ▼0.0440.46 ▼3.3636.41 ▼2.29
Add New Post /wp-admin/post-new.php1,526 ▼223.02 ▲0.03680.70 ▼35.5160.66 ▲9.71
Media Library /wp-admin/upload.php1,400 ▲34.09 ▼0.11112.17 ▲13.0147.41 ▲1.71

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-posts

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
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× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/visual-biography-editor/visual-editor-biography.php:54

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
  • Screenshots: Add images for these screenshots: #1 (The TinyMCE visual editor added to the *Users > Profile* page), #2 (The formatted front end view for `get_the_author_meta('description')` and `the_author_meta('description')`)
  • Tags: You are using too many tags: 20 tag instead of maximum 10
The official readme.txt might help

visual-biography-editor/visual-editor-biography.php 92% from 13 tests

Analyzing the main PHP file in "Visual Editor Biography" version 1.4
Please take the time to fix the following:
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("visual-biography-editor.php" instead of "visual-editor-biography.php")

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 plugin67 lines of code in 2 files:
LanguageFilesBlank linesComment linesLines of code
PHP1235464
JavaScript1013

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity8.00
▷ Minimum class complexity8.00
▷ Maximum class complexity8.00
Average method complexity2.40
▷ Minimum method complexity2.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods5
▷ Static methods00.00%
▷ Public methods5100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
2 PNG files occupy 0.14MB with 0.10MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant
FileSize - originalSize - compressedSavings
screenshot-1.png81.90KB24.80KB▼ 69.72%
screenshot-2.png63.37KB19.80KB▼ 68.76%