84% author-profile-plus

Code Review | Author Profile Plus

WordPress plugin Author Profile Plus scored84%from 54 tests.

About plugin

  • Plugin page: author-profile-plus
  • Plugin version: 0.8.2
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0-3.8.1
  • WordPress version: 6.3.1
  • First release: Feb 9, 2014
  • Latest release: Feb 10, 2014
  • Number of updates: 13
  • Update frequency: every 0.2 days
  • Top authors: hello@lukerollans.me (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /1,868 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▲0.05MB] [CPU: ▼3.70ms] Passed 4 tests

An overview of server-side resources used by Author Profile Plus
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.52 ▲0.0639.76 ▼4.28
Dashboard /wp-admin3.35 ▲0.0551.00 ▼2.72
Posts /wp-admin/edit.php3.41 ▲0.0550.36 ▲0.36
Add New Post /wp-admin/post-new.php5.96 ▲0.0787.29 ▼8.15
Media Library /wp-admin/upload.php3.28 ▲0.0538.25 ▲1.44
Author Profile Plus /wp-admin/options-general.php?page=author-profile-plus3.2533.86

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Author Profile Plus
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,807 ▲4614.13 ▼0.581.54 ▼0.6247.26 ▲0.67
Dashboard /wp-admin2,205 ▲255.81 ▲0.1691.00 ▲1.9141.55 ▼2.92
Posts /wp-admin/edit.php2,110 ▲102.01 ▲0.0440.20 ▼0.3341.38 ▲5.92
Add New Post /wp-admin/post-new.php1,535 ▲723.25 ▲2.45669.19 ▼44.8652.80 ▼9.31
Media Library /wp-admin/upload.php1,413 ▲104.29 ▲0.1298.14 ▼5.4442.99 ▼10.48
Author Profile Plus /wp-admin/options-general.php?page=author-profile-plus8222.0430.2343.94

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
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-posts
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments
    • db_upgraded
    • widget_theysaidso_widget

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
The smoke test was a success, however most plugin functionality was not tested

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 server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/author-profile-plus/lib/shortcodes.php:44

User-side errors Passed 1 test

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

Optimizations

Plugin configuration 96% from 29 tests

readme.txt Passed 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
2 plugin tags: user profile, profile

author-profile-plus/init.php 92% from 13 tests

The principal PHP file in "Author Profile Plus" v. 0.8.2 is loaded by WordPress automatically on each request
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("author-profile-plus.php" instead of "init.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected1,024 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP5285144555
SVG100414
CSS313951
JavaScript111334

PHP code Passed 2 tests

An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.32
Average class complexity14.50
▷ Minimum class complexity1.00
▷ Maximum class complexity28.00
Average method complexity4.00
▷ Minimum method complexity1.00
▷ Maximum method complexity9.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes2
▷ Abstract classes00.00%
▷ Concrete classes2100.00%
▷ Final classes150.00%
Methods9
▷ Static methods888.89%
▷ Public methods9100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions23
▷ Named functions23100.00%
▷ Anonymous functions00.00%
Constants3
▷ Global constants3100.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