77% syno-author-bio

Code Review | Syno Author Bio

WordPress plugin Syno Author Bio scored77%from 54 tests.

About plugin

  • Plugin page: syno-author-bio
  • Plugin version: 0.1
  • PHP compatiblity: 7+
  • PHP version: 7.4.16
  • WordPress compatibility: 5-5.3.2
  • WordPress version: 6.3.1
  • First release: Feb 26, 2020
  • Latest release: Feb 26, 2020
  • Number of updates: 2
  • Update frequency: every 1.0 days
  • Top authors: ashrafpeal (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /362 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully

Server metrics [RAM: ▼0.31MB] [CPU: ▼16.62ms] Passed 4 tests

A check of server-side resources used by Syno Author Bio
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.45 ▼0.0136.77 ▼6.12
Dashboard /wp-admin3.33 ▲0.0250.24 ▼0.10
Posts /wp-admin/edit.php3.38 ▲0.0247.11 ▼6.24
Add New Post /wp-admin/post-new.php4.62 ▼1.2739.51 ▼54.00
Media Library /wp-admin/upload.php3.25 ▲0.0234.51 ▲0.89

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

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

Browser metrics Passed 4 tests

A check of browser resources used by Syno Author Bio
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,804 ▲3313.23 ▼1.361.81 ▼0.1341.45 ▼6.27
Dashboard /wp-admin2,203 ▲154.85 ▼0.0496.99 ▼27.6740.86 ▼3.59
Posts /wp-admin/edit.php2,089 ▼32.00 ▲0.0133.63 ▼3.5735.07 ▼3.10
Add New Post /wp-admin/post-new.php1,533 ▼923.25 ▲4.86609.28 ▼144.6260.48 ▼11.70
Media Library /wp-admin/upload.php1,391 ▼04.20 ▼0.0296.85 ▼2.5345.00 ▲0.57

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • 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
The smoke test was a success, however most plugin functionality was not tested

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
Almost there! Just fix the following items
  • 2× PHP files perform the action of outputting non-empty strings when accessed directly:
    • > /wp-content/plugins/syno-author-bio/inc/load.php
    • > /wp-content/plugins/syno-author-bio/syno_author_bio.php
  • 2× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/syno-author-bio/inc/admin/author_profile.php:20
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/syno-author-bio/inc/front/show_author_profile.php:90

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found

Optimizations

Plugin configuration 83% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
Attributes that need to be fixed:
  • Stable tag: Not defined
  • Donate link: Invalid url: ""
You can look at the official readme.txt

syno-author-bio/syno_author_bio.php 77% from 13 tests

The main PHP file in "Syno Author Bio" ver. 0.1 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("syno-author-bio.php" instead of "syno_author_bio.php")
  • Requires at least: Required version number formatted incorrectly (ex. "7.0" instead of "5")
  • Requires PHP: Required version number formatted incorrectly (ex. "7.0" instead of "7")

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
Everything looks great! No dangerous files found in this plugin9,291 lines of code in 9 files:
LanguageFilesBlank linesComment linesLines of code
SVG30129,061
PHP42641125
CSS2214105

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity0.00
▷ Minimum class complexity0.00
▷ Maximum class complexity0.00
Average method complexity0.00
▷ Minimum method complexity0.00
▷ Maximum method complexity0.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes0
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
Methods0
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions4
▷ Named functions4100.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
PNG images were not found in this plugin