84% author-info-icon

Code Review | Author Info Icon

WordPress plugin Author Info Icon scored84%from 54 tests.

About plugin

  • Plugin page: author-info-icon
  • Plugin version: 2017.01.02
  • PHP version: 7.4.16
  • WordPress compatibility: 4.2+
  • WordPress version: 6.3.1
  • First release: Jan 11, 2017
  • Latest release: Jan 13, 2017
  • Number of updates: 16
  • Update frequency: every 12.8 days
  • Top authors: majadul (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /569 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼0.32MB] [CPU: ▼17.00ms] Passed 4 tests

Analyzing server-side resources used by Author Info Icon
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.45 ▼0.0236.56 ▼6.87
Dashboard /wp-admin3.32 ▲0.0250.11 ▼1.67
Posts /wp-admin/edit.php3.37 ▲0.0246.72 ▼6.20
Add New Post /wp-admin/post-new.php4.61 ▼1.2746.59 ▼53.25
Media Library /wp-admin/upload.php3.24 ▲0.0137.93 ▲2.90

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 40 new files
Database: no new tables, 6 new options
New WordPress options
db_upgraded
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_recent-comments
widget_theysaidso_widget

Browser metrics Passed 4 tests

Checking browser requirements for Author Info Icon
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.23 ▼0.411.87 ▼0.2144.82 ▲0.09
Dashboard /wp-admin2,198 ▲275.55 ▼0.0599.53 ▼0.7640.14 ▼3.72
Posts /wp-admin/edit.php2,100 ▼02.02 ▲0.0136.86 ▲1.6537.08 ▲2.04
Add New Post /wp-admin/post-new.php1,526 ▼223.22 ▲0.23644.41 ▼7.9749.83 ▼9.49
Media Library /wp-admin/upload.php1,403 ▲34.16 ▼0.0899.59 ▼5.3141.97 ▼1.10

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • This plugin does not fully uninstall, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • widget_recent-posts
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded

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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
The following issues need your attention
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/author-info-icon/index.php:18

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Please fix the following attributes:
  • Tested up to: The plugin version is formatted incorrectly
Please take inspiration from this readme.txt

author-info-icon/index.php 92% from 13 tests

The main PHP file in "Author Info Icon" ver. 2017.01.02 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("author-info-icon.php" instead of "index.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected8,656 lines of code in 33 files:
LanguageFilesBlank linesComment linesLines of code
SVG1002,671
CSS313152,417
Sass1434341,768
LESS1434441,758
PHP181942

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
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

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin