WordPress plugin ExpertFile scored10%from 54 tests.

About plugin

  • Plugin page: expertfile-expert...
  • Plugin version: 1.0.45
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Mar 17, 2022
  • Latest release: Nov 23, 2023
  • Number of updates: 87
  • Update frequency: every 7.1 days
  • Top authors: danstanhope (100%)

Code review

54 tests

User reviews

2 reviews

Install metrics

10+ active /1,006 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
  • Install procedure had errors
    • > Notice in wp-content/plugins/expertfile-expert-content-templates/public/class-expertfile-public.php+1173
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.35MB] [CPU: ▼47.33ms] Passed 4 tests

This is a short check of server-side resources used by ExpertFile
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /2.65 ▼0.829.65 ▼30.17
Dashboard /wp-admin2.67 ▼0.6411.78 ▼39.80
Posts /wp-admin/edit.php2.67 ▼0.7011.00 ▼36.69
Add New Post /wp-admin/post-new.php2.67 ▼3.2310.39 ▼82.66
Media Library /wp-admin/upload.php2.67 ▼0.5714.03 ▼17.79

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 86 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
can_compress_scripts
db_upgraded
widget_theysaidso_widget
widget_recent-comments

Browser metrics Passed 4 tests

ExpertFile: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,841 ▲7914.29 ▼0.051.87 ▲0.1638.90 ▼6.87
Dashboard /wp-admin2,212 ▲325.57 ▼0.0892.20 ▼5.9290.37 ▲45.23
Posts /wp-admin/edit.php2,132 ▲321.93 ▼0.0236.54 ▼6.3134.07 ▼2.17
Add New Post /wp-admin/post-new.php1,709 ▲18320.34 ▼3.19728.73 ▲94.1357.36 ▲1.57
Media Library /wp-admin/upload.php1,426 ▲264.09 ▼0.10103.58 ▲2.6667.17 ▲23.51

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
These items require your attention
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/expertfile-expert-content-templates/public/class-expertfile-public.php+1173
    Trying to access array offset on value of type bool
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • can_compress_scripts
    • widget_recent-comments
    • widget_theysaidso_widget
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means 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
  • 3× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/expertfile-expert-content-templates/admin/partials/index.php
    • > /wp-content/plugins/expertfile-expert-content-templates/admin/partials/shortcodes.php
    • > /wp-content/plugins/expertfile-expert-content-templates/admin/partials/overview.php
  • 19× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
    • > PHP Fatal error
      Uncaught Error: Class 'ExpertFileECT\\Api' not found in wp-content/plugins/expertfile-expert-content-templates/public/classes/ExpertAnswer.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'ExpertFileECT\\Api' not found in wp-content/plugins/expertfile-expert-content-templates/public/classes/Design.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Sitemaps_Provider' not found in wp-content/plugins/expertfile-expert-content-templates/public/classes/QuestionSitemapProvider.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/expertfile-expert-content-templates/public/partials/spotlight/list.php:5
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/expertfile-expert-content-templates/public/partials/expertanswer/post.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/expertfile-expert-content-templates/public/partials/expert/directory.php:7
    • > PHP Fatal error
      Uncaught Error: Call to undefined function settings_fields() in wp-content/plugins/expertfile-expert-content-templates/admin/partials/settings.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/expertfile-expert-content-templates/public/partials/spotlight/post.php:4
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/expertfile-expert-content-templates/public/partials/expert/featured.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ExpertFileECT\\Api' not found in wp-content/plugins/expertfile-expert-content-templates/public/classes/Inquiry.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 94% 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
Please fix the following attributes: You can look at the official readme.txt

expertfile-expert-content-templates/expertfile.php 85% from 13 tests

Analyzing the main PHP file in "ExpertFile" version 1.0.45
The following require your attention:
  • Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("expertfile-expert-content-templates.php" instead of "expertfile.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin10,594 lines of code in 65 files:
LanguageFilesBlank linesComment linesLines of code
PHP348081287,016
JavaScript25400462,544
CSS476192996
JSON10032
SVG1006

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.63
Average class complexity17.28
▷ Minimum class complexity1.00
▷ Maximum class complexity116.00
Average method complexity3.64
▷ Minimum method complexity1.00
▷ Maximum method complexity46.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes18
▷ Abstract classes00.00%
▷ Concrete classes18100.00%
▷ Final classes00.00%
Methods111
▷ Static methods1917.12%
▷ Public methods10291.89%
▷ Protected methods00.00%
▷ Private methods98.11%
Functions5
▷ Named functions360.00%
▷ Anonymous functions240.00%
Constants34
▷ Global constants34100.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
12 PNG files occupy 0.06MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
public/img/inquiry/circle_research.png5.64KB3.15KB▼ 44.06%
public/img/inquiry/circle_donor.png6.15KB3.71KB▼ 39.69%
public/img/expertfile.png4.46KB2.63KB▼ 40.95%
public/img/inquiry/circle_partner.png6.88KB4.05KB▼ 41.14%
public/img/inquiry/circle_meeting.png3.69KB1.59KB▼ 57.05%