83% fonebug-supply-list

Code Review | Fonebug Supply List

WordPress plugin Fonebug Supply List scored83%from 54 tests.

About plugin

  • Plugin page: fonebug-supply-list
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.0
  • WordPress version: 6.3.1
  • First release: Nov 15, 2014
  • Latest release: Nov 16, 2014
  • Number of updates: 5
  • Update frequency: every 0.4 days
  • Top authors: theArab (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /781 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully

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

This is a short check of server-side resources used by Fonebug Supply List
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0143.79 ▲4.87
Dashboard /wp-admin3.31 ▲0.0145.66 ▼2.61
Posts /wp-admin/edit.php3.36 ▲0.0149.28 ▲1.84
Add New Post /wp-admin/post-new.php5.89 ▲0.0193.98 ▼5.10
Media Library /wp-admin/upload.php3.24 ▲0.0133.74 ▼3.25

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

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

Browser metrics Passed 4 tests

An overview of browser requirements for Fonebug Supply List
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,826 ▲6514.68 ▲0.312.00 ▲0.5444.45 ▲4.83
Dashboard /wp-admin2,204 ▲275.51 ▼0.1782.56 ▼5.3339.18 ▼2.66
Posts /wp-admin/edit.php2,112 ▲92.02 ▲0.0438.68 ▼5.1639.93 ▲0.86
Add New Post /wp-admin/post-new.php1,542 ▲1622.87 ▼0.55591.71 ▼57.1950.52 ▲0.06
Media Library /wp-admin/upload.php1,412 ▲124.21 ▼0.07102.83 ▲5.7341.99 ▲2.33

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
    • theysaidso_admin_options
    • widget_recent-comments
    • db_upgraded
    • can_compress_scripts
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested

SRP 50% 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
The following issues need your attention
  • 5× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/fonebug-supply-list/index.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_url() in wp-content/plugins/fonebug-supply-list/_include/fb-styles.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/fonebug-supply-list/admin_home.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fonebug-supply-list/wp-fonebug-supply-list.php:14
    • > PHP Fatal error
      Uncaught Error: Call to undefined function mysql_query() in wp-content/plugins/fonebug-supply-list/_include/fb-build-db.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
  • Plugin Name: Write the name of your plugin instead of "Plugin Name" on the first line ( === fonebug-supply-list === )
  • Screenshots: These screenshots require images: #1 (fonebug-screenshot-1.png), #2 (fonebug-screenshot-2.png), #3 (fonebug-screenshot-3.png), #4 (fonebug-screenshot-4.png), #5 (fonebug-screenshot-5.png)
The official readme.txt is a good inspiration

fonebug-supply-list/wp-fonebug-supply-list.php 92% from 13 tests

The primary PHP file in "Fonebug Supply List" version 1.0 is used by WordPress to initiate all plugin functionality
Please take the time to fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("fonebug-supply-list.php" instead of "wp-fonebug-supply-list.php")

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
Everything looks great! No dangerous files found in this plugin1,046 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP61501591,046

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.28
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%
Functions34
▷ Named functions34100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
19 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
_btns/btn_save16_reg.png3.14KB0.52KB▼ 83.37%
_btns/btn_delete16_reg.png0.70KB0.74KB0.00%
_btns/btn_check_green16_reg.png1.90KB0.94KB▼ 50.26%
_btns/btn_check_green32_reg.png1.71KB1.62KB▼ 5.19%
_btns/btn_fonebug32_reg.png3.18KB1.63KB▼ 48.91%