83% wpfts-add-on-for-wp-filebase-pro

Code Review | WPFTS Add-on for WP-Filebase Pro

WordPress plugin WPFTS Add-on for WP-Filebase Pro scored 83% from 54 tests.

About plugin

  • Plugin page: wpfts-add-on-for-...
  • Plugin version: 1.3.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-5.7.2
  • WordPress version: 6.3.1
  • First release: Jan 15, 2020
  • Latest release: Jun 29, 2021
  • Number of updates: 4
  • Update frequency: every 132.7 days
  • Top authors: Epsiloncool (100%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active / 1,147 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
This plugin's installer ran successfully

Server metrics [RAM: ▲0.02MB] [CPU: ▼3.31ms] Passed 4 tests

This is a short check of server-side resources used by WPFTS Add-on for WP-Filebase Pro
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.49 ▲0.0338.82 ▼1.85
Dashboard /wp-admin3.32 ▲0.0251.35 ▲3.45
Posts /wp-admin/edit.php3.37 ▲0.0246.15 ▼5.10
Add New Post /wp-admin/post-new.php5.90 ▲0.0286.25 ▼8.15
Media Library /wp-admin/upload.php3.24 ▲0.0235.87 ▲1.86

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

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

Browser metrics Passed 4 tests

WPFTS Add-on for WP-Filebase Pro: an overview of browser usage
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,800 ▲6513.73 ▼0.561.68 ▼0.2040.52 ▼1.48
Dashboard /wp-admin2,200 ▲155.82 ▼0.0694.52 ▼5.1541.13 ▼1.91
Posts /wp-admin/edit.php2,086 ▼62.02 ▲0.0233.58 ▼7.1937.03 ▲2.71
Add New Post /wp-admin/post-new.php1,533 ▼923.43 ▲5.02686.15 ▲58.3051.49 ▲1.05
Media Library /wp-admin/upload.php1,388 ▼04.15 ▼0.01100.32 ▼0.0946.28 ▼3.44

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • can_compress_scripts
    • widget_theysaidso_widget
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 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
Please take a closer look at the following
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/wpfts-add-on-for-wp-filebase-pro/wpfts-filebase-addon.php:51

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side

Optimizations

Plugin configuration 90% from 29 tests

readme.txt Passed 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
5 plugin tags: add-on, content search, file search, wp filebase pro, fulltext search

wpfts-add-on-for-wp-filebase-pro/wpfts-filebase-addon.php 77% from 13 tests

Analyzing the main PHP file in "WPFTS Add-on for WP-Filebase Pro" version 1.3.0
It is important to fix the following:
  • Text Domain: The text domain name should consist of only dashes and lowercase characters
  • Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wpfts-add-on-for-wp-filebase-pro.php" instead of "wpfts-filebase-addon.php")
  • Domain Path: The domain path folder does not exist ("/languages/")

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
Good job! No executable or dangerous file extensions detected49 lines of code in 1 file:
LanguageFilesBlank linesComment linesLines of code
PHP1194749

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.58
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 functions00.00%
▷ Anonymous functions3100.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 images were found in this plugin