78% fetch-spad

Code Review | Fetch SPAD

WordPress plugin Fetch SPAD scored78%from 54 tests.

About plugin

  • Plugin page: fetch-spad
  • Plugin version: 1.1.1
  • PHP version: 7.4.16
  • WordPress version: 6.3.1
  • First release: Jan 12, 2023
  • Latest release: Oct 12, 2023
  • Number of updates: 10
  • Update frequency: every 27.3 days
  • Top authors: pjaudiomv (60%)bmltenabled (50%)

Code review

54 tests

User reviews

1 review

Install metrics

60+ active /812 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▲0.01MB] [CPU: ▼7.67ms] Passed 4 tests

Analyzing server-side resources used by Fetch SPAD
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0148.11 ▲8.54
Dashboard /wp-admin3.33 ▼0.0142.65 ▼19.20
Posts /wp-admin/edit.php3.38 ▲0.0347.47 ▲3.84
Add New Post /wp-admin/post-new.php5.91 ▲0.0376.34 ▼17.52
Media Library /wp-admin/upload.php3.25 ▲0.0333.09 ▲2.19
Fetch SPAD /wp-admin/options-general.php?page=spad-plugin3.2226.84

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
can_compress_scripts
db_upgraded
widget_recent-comments
widget_recent-posts

Browser metrics Passed 4 tests

This is an overview of browser requirements for Fetch SPAD
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.35 ▼0.251.56 ▲0.0136.71 ▼7.11
Dashboard /wp-admin2,202 ▲225.61 ▼0.0695.01 ▲7.2541.48 ▼1.58
Posts /wp-admin/edit.php2,107 ▲72.03 ▲0.0138.95 ▼0.0135.04 ▼8.02
Add New Post /wp-admin/post-new.php1,538 ▲1218.04 ▼5.01634.72 ▼30.1965.51 ▲12.55
Media Library /wp-admin/upload.php1,407 ▲44.20 ▲0.0298.52 ▼0.2441.05 ▼5.45
Fetch SPAD /wp-admin/options-general.php?page=spad-plugin8292.0327.5828.27

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • widget_recent-posts
    • db_upgraded
    • theysaidso_admin_options
    • 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
The smoke test was a success, however most plugin functionality was not tested

SRP 0% from 2 tests

🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
  • 1× PHP files perform the task of outputting text when accessed with GET requests:
    • > /wp-content/plugins/fetch-spad/fetch-spad-plugin.php
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/fetch-spad/src/Widget.php:5

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 93% from 29 tests

readme.txt Passed 16 tests

Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
4 plugin tags: na, spad, narcotics anonymous, spiritual principle a day

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

The principal PHP file in "Fetch SPAD" v. 1.1.1 is loaded by WordPress automatically on each request
It is important to fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("fetch-spad.php" instead of "fetch-spad-plugin.php")
  • Description: Keep the plugin description shorter than 140 characters (currently 190 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
Good job! No executable or dangerous file extensions detected311 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP53512265
CSS18046

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity4.75
▷ Minimum class complexity1.00
▷ Maximum class complexity11.00
Average method complexity1.64
▷ Minimum method complexity1.00
▷ Maximum method complexity8.00
Code structure
Namespaces1
Interfaces0
Traits0
Classes4
▷ Abstract classes00.00%
▷ Concrete classes4100.00%
▷ Final classes00.00%
Methods23
▷ Static methods14.35%
▷ Public methods1669.57%
▷ Protected methods730.43%
▷ Private methods00.00%
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

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin