99% expert-finder

Code Review | Expert Finder

WordPress plugin Expert Finder scored 99% from 54 tests.

About plugin

  • Plugin page: expert-finder
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress version: 5.8.1
  • First release: Jun 23, 2016
  • Latest release: Jun 10, 2016
  • Number of updates: 3
  • Update frequency: every 2.7 days
  • Top authors: konnektiv (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 474 total downloads

Benchmarks

Plugin footprint Passed 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.09MB] [CPU: ▼137.66ms] Passed 4 tests

This is a short check of server-side resources used by Expert Finder
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /2.90 ▲0.1832.89 ▲11.36
Dashboard /wp-admin3.14 ▲0.0848.64 ▲4.38
Posts /wp-admin/edit.php3.25 ▲0.1347.96 ▼1.34
Add New Post /wp-admin/post-new.php5.50 ▲0.0693.52 ▼552.43
Media Library /wp-admin/upload.php3.08 ▲0.0834.22 ▼1.25
Expert Finder /wp-admin/options-general.php?page=expertfinder-setting-admin3.0731.03

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

Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 20 new files
Database: no new tables, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for Expert Finder
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,684 ▲4715.79 ▲0.257.65 ▼1.4048.25 ▼0.54
Dashboard /wp-admin2,978 ▲475.89 ▼0.04138.19 ▼6.13108.82 ▼14.61
Posts /wp-admin/edit.php2,744 ▲52.70 ▲0.0170.15 ▲4.0496.03 ▼0.72
Add New Post /wp-admin/post-new.php1,675 ▲318.86 ▲0.05372.87 ▲9.84112.48 ▼0.20
Media Library /wp-admin/upload.php1,812 ▲55.03 ▲0.05148.87 ▲6.63118.63 ▲1.77
Expert Finder /wp-admin/options-general.php?page=expertfinder-setting-admin1,5402.1060.97142.21

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Uninstall script ran successfully

Smoke tests Passed 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The SRP test was a success

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)
There were no browser issues found

Optimizations

Plugin configuration 93% 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
Please fix the following attributes:
  • Requires at least: Invalid plugin version format
  • Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
The official readme.txt might help

expert-finder/expert-finder.php Passed 13 tests

The main PHP script in "Expert Finder" version 1.0.0 is automatically included on every request by WordPress
119 characters long description:
This WordPress plugin provides a search engine to find experts who created or commented various WordPress content types

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin801 lines of code in 18 files:
LanguageFilesBlank linesComment linesLines of code
PHP17211331791
JSON10010

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity4.29
▷ Minimum class complexity1.00
▷ Maximum class complexity15.00
Average method complexity1.55
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes17
▷ Abstract classes317.65%
▷ Concrete classes1482.35%
▷ Final classes00.00%
Methods99
▷ Static methods88.08%
▷ Public methods5050.51%
▷ Protected methods2727.27%
▷ Private methods2222.22%
Functions5
▷ Named functions00.00%
▷ Anonymous functions5100.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There were not PNG files found in your plugin