78% hosted-jft

Code Review | Hosted JFT

WordPress plugin Hosted JFT scored78%from 54 tests.

About plugin

  • Plugin page: hosted-jft
  • Plugin version: 1.0.3
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: May 6, 2020
  • Latest release: May 18, 2023
  • Number of updates: 5
  • Update frequency: every 225.0 days
  • Top authors: bmltenabled (80%)pjaudiomv (40%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /546 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully

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

This is a short check of server-side resources used by Hosted JFT
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0239.03 ▼2.21
Dashboard /wp-admin3.32 ▲0.0252.11 ▼2.48
Posts /wp-admin/edit.php3.37 ▲0.0244.86 ▼4.90
Add New Post /wp-admin/post-new.php5.90 ▲0.02101.00 ▼2.65
Media Library /wp-admin/upload.php3.24 ▲0.0236.72 ▲1.69
Hosted JFT /wp-admin/options-general.php?page=hosted-jft-plugin3.2134.59

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

Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 6 new files
Database: no new tables, 7 new options
New WordPress options
widget_hosted_jft_widget
widget_recent-posts
widget_theysaidso_widget
can_compress_scripts
theysaidso_admin_options
db_upgraded
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Hosted JFT
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,829 ▲8313.18 ▼1.091.91 ▼0.1242.39 ▲0.04
Dashboard /wp-admin2,210 ▲185.80 ▼0.0998.06 ▼12.4638.38 ▼4.88
Posts /wp-admin/edit.php2,093 ▲42.00 ▼0.0235.49 ▼4.2432.39 ▼6.15
Add New Post /wp-admin/post-new.php1,541 ▲2723.20 ▲5.51742.96 ▲66.0552.96 ▲0.30
Media Library /wp-admin/upload.php1,389 ▲14.22 ▲0.03114.45 ▲8.4247.59 ▲3.26
Hosted JFT /wp-admin/options-general.php?page=hosted-jft-plugin2,9912.0225.8128.57

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
  • Zombie WordPress options were found after uninstall: 7 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • widget_recent-posts
    • db_upgraded
    • widget_hosted_jft_widget
    • widget_recent-comments
    • can_compress_scripts

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

SRP 0% 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 fix the following
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/hosted-jft/hosted-jft-plugin.php
  • 1× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/hosted-jft/admin/hosted-jft-dashboard.php:14

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 undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: jft, just for today, na, narcotics anonymous, hosted jft

hosted-jft/hosted-jft-plugin.php 92% from 13 tests

The main file in "Hosted JFT" v. 1.0.3 serves as a complement to information provided in readme.txt and as the entry point to the plugin
The following require your attention:
  • Main file name: Name the main plugin file the same as the plugin slug ("hosted-jft.php" instead of "hosted-jft-plugin.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
There were no executable files found in this plugin221 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP32650221

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.16
Average class complexity4.00
▷ Minimum class complexity4.00
▷ Maximum class complexity4.00
Average method complexity1.75
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods4
▷ Static methods00.00%
▷ Public methods4100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions675.00%
▷ Anonymous functions225.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected