78% fetch-jft

Code Review | Fetch JFT

WordPress plugin Fetch JFT scored78%from 54 tests.

About plugin

  • Plugin page: fetch-jft
  • Plugin version: 1.8.2
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Apr 16, 2018
  • Latest release: Oct 23, 2023
  • Number of updates: 86
  • Update frequency: every 23.4 days
  • Top authors: pjaudiomv (83.72%)bmltenabled (17.44%)

Code review

54 tests

User reviews

2 reviews

Install metrics

100+ active /4,167 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Installer ran successfully

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

A check of server-side resources used by Fetch JFT
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0236.30 ▼5.96
Dashboard /wp-admin3.34 ▼0.0153.90 ▼11.85
Posts /wp-admin/edit.php3.39 ▲0.0347.18 ▼0.37
Add New Post /wp-admin/post-new.php5.92 ▲0.0382.92 ▼14.21
Media Library /wp-admin/upload.php3.26 ▲0.0336.20 ▲2.51
Fetch JFT /wp-admin/options-general.php?page=jft-plugin3.2333.80

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

A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
widget_recent-posts
can_compress_scripts
theysaidso_admin_options
widget_theysaidso_widget
db_upgraded

Browser metrics Passed 4 tests

Fetch JFT: an overview of browser usage
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.28 ▼0.071.55 ▼0.1039.77 ▼7.54
Dashboard /wp-admin2,202 ▲225.54 ▼0.1482.29 ▼1.4138.26 ▼0.63
Posts /wp-admin/edit.php2,104 ▲41.99 ▼0.0333.96 ▼0.8031.13 ▼8.96
Add New Post /wp-admin/post-new.php1,529 ▲323.66 ▲0.63677.91 ▼1.8455.41 ▼4.35
Media Library /wp-admin/upload.php1,404 ▲74.26 ▼0.0195.32 ▼3.3643.20 ▼2.43
Fetch JFT /wp-admin/options-general.php?page=jft-plugin9211.9923.6728.12

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
You still need to fix the following
  • The uninstall procedure has failed, leaving 6 options in the database
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
Almost there! Just fix the following items
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/fetch-jft/fetch-jft-plugin.php
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/fetch-jft/src/Widget.php:5

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected

Optimizations

Plugin configuration 93% 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
4 plugin tags: jft, just for today, narcotics anonymous, na

fetch-jft/fetch-jft-plugin.php 85% from 13 tests

The primary PHP file in "Fetch JFT" version 1.8.2 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
  • Main file name: Name the main plugin file the same as the plugin slug ("fetch-jft.php" instead of "fetch-jft-plugin.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 189 characters long)

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin831 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP683285831

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.43
Average class complexity28.20
▷ Minimum class complexity3.00
▷ Maximum class complexity100.00
Average method complexity3.87
▷ Minimum method complexity1.00
▷ Maximum method complexity52.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes5
▷ Abstract classes00.00%
▷ Concrete classes5100.00%
▷ Final classes00.00%
Methods48
▷ Static methods1837.50%
▷ Public methods2960.42%
▷ Protected methods1429.17%
▷ Private methods510.42%
Functions2
▷ Named functions00.00%
▷ Anonymous functions2100.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.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 images were found in this plugin