78% author-info-box

Code Review | Author: Alessio Moretto

WordPress plugin Author: Alessio Moretto scored78%from 54 tests.

About plugin

  • Plugin page: author-info-box
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-3.4
  • WordPress version: 6.3.1
  • First release: Nov 3, 2016
  • Latest release: Nov 3, 2016
  • Number of updates: 4
  • Update frequency: N/A
  • Top authors: morettolss (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /558 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.08MB] [CPU: ▼3.24ms] Passed 4 tests

An overview of server-side resources used by Author: Alessio Moretto
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.58 ▲0.0743.49 ▼3.33
Dashboard /wp-admin3.42 ▲0.0750.05 ▼0.32
Posts /wp-admin/edit.php3.53 ▲0.1349.74 ▲1.90
Add New Post /wp-admin/post-new.php6.02 ▲0.0993.14 ▼9.89
Media Library /wp-admin/upload.php3.34 ▲0.0739.76 ▲0.57

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-comments
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Author: Alessio Moretto
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,832 ▲7114.39 ▲0.041.71 ▲0.2342.64 ▼1.27
Dashboard /wp-admin2,235 ▲555.85 ▲0.23100.64 ▲10.7543.78 ▼4.16
Posts /wp-admin/edit.php2,142 ▲452.27 ▲0.2636.69 ▼1.0830.38 ▼4.77
Add New Post /wp-admin/post-new.php1,555 ▲2923.54 ▲0.51685.18 ▼4.9934.43 ▼27.10
Media Library /wp-admin/upload.php1,440 ▲404.43 ▲0.2098.25 ▼16.5843.85 ▼6.16

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test

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
Almost there! Just fix the following items
  • 1× PHP files output non-empty strings when accessed directly via GET requests:
    • > /wp-content/plugins/author-info-box/css/frontendcss.php
  • 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/author-info-box/author_info_box.php:77

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

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Contributors: Contributors not specified
  • Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line ( === Author: Alessio Moretto === )
You can take inspiration from this readme.txt

author-info-box/author_info_box.php 92% from 13 tests

"Author: Alessio Moretto" version 1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("author-info-box.php" instead of "author_info_box.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
No dangerous file extensions were detected1,251 lines of code in 7 files:
LanguageFilesBlank linesComment linesLines of code
CSS3190721
PHP25913368
SVG110159
JavaScript1103

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.40
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%
Functions9
▷ Named functions9100.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
No PNG files were detected