83% fyndle-setup

Code Review | Fyndle Setup

WordPress plugin Fyndle Setup scored83%from 54 tests.

About plugin

  • Plugin page: fyndle-setup
  • Plugin version: 1.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.6-4.7
  • WordPress version: 6.3.1
  • First release: Dec 22, 2016
  • Latest release: Jan 6, 2018
  • Number of updates: 10
  • Update frequency: every 37.9 days
  • Top authors: mschippers (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /504 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
Install script ran successfully

Server metrics [RAM: ▼0.22MB] [CPU: ▼16.29ms] Passed 4 tests

Analyzing server-side resources used by Fyndle Setup
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.48 ▲0.0242.47 ▲2.07
Dashboard /wp-admin3.07 ▼0.2333.49 ▼14.03
Posts /wp-admin/edit.php3.21 ▼0.1437.52 ▼18.91
Add New Post /wp-admin/post-new.php5.45 ▼0.4370.85 ▼29.81
Media Library /wp-admin/upload.php3.16 ▼0.0729.73 ▼2.42
Fyndle Setup /wp-admin/options-general.php?page=Fyndle_Setup3.0625.16

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options
can_compress_scripts
theysaidso_admin_options
widget_recent-posts
widget_theysaidso_widget
widget_recent-comments
db_upgraded

Browser metrics Passed 4 tests

This is an overview of browser requirements for Fyndle Setup
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,795 ▲3414.24 ▼0.111.55 ▼0.2345.64 ▲3.58
Dashboard /wp-admin2,198 ▲245.55 ▲0.0186.73 ▼2.5839.44 ▼2.43
Posts /wp-admin/edit.php2,088 ▼122.04 ▲0.0136.24 ▼5.1435.48 ▼5.34
Add New Post /wp-admin/post-new.php1,531 ▲523.04 ▼0.10633.09 ▲2.9255.41 ▲7.88
Media Library /wp-admin/upload.php1,397 ▼34.18 ▼0.1097.41 ▼8.9443.09 ▼2.35
Fyndle Setup /wp-admin/options-general.php?page=Fyndle_Setup8132.0228.5346.30

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
  • The uninstall procedure has failed, leaving 6 options in the database
    • can_compress_scripts
    • widget_recent-comments
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-posts
    • widget_theysaidso_widget

Smoke tests 75% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Almost there, just fix the following server-side errors
    • > GET request to /wp-admin/options-general.php?page=Fyndle_Setup
    • > Notice in wp-content/plugins/fyndle-setup/fyndle_setup.php+79
    Undefined property: WP_Fyndle_Setup::$constants
    • > GET request to /wp-admin/options-general.php?page=Fyndle_Setup
    • > Notice in wp-content/plugins/fyndle-setup/fyndle_setup.php+79
    Trying to access array offset on value of type null

SRP Passed 2 tests

🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Everything seems fine, however this is by no means an exhaustive test

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
  • Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line ( === fyndle-setup === )
You can look at the official readme.txt

fyndle-setup/fyndle_setup.php 92% from 13 tests

The main PHP script in "Fyndle Setup" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
  • Main file name: It is recommended to name the main PHP file as the plugin slug ("fyndle-setup.php" instead of "fyndle_setup.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin859 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
CSS11046735
PHP28534124

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.34
Average class complexity3.00
▷ Minimum class complexity3.00
▷ Maximum class complexity3.00
Average method complexity1.25
▷ Minimum method complexity1.00
▷ Maximum method complexity2.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes1
▷ Abstract classes00.00%
▷ Concrete classes1100.00%
▷ Final classes00.00%
Methods8
▷ Static methods112.50%
▷ Public methods8100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions1
▷ Named functions1100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
5 PNG files occupy 1.38MB with 0.83MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/banner-1544x500.png924.70KB423.59KB▼ 54.19%
assets/icon-256x256.png34.08KB14.35KB▼ 57.88%
assets/icon-128x128.png12.20KB5.11KB▼ 58.16%
assets/banner-772x250.png256.70KB113.42KB▼ 55.82%
assets/screenshot-1.png184.08KB45.70KB▼ 75.17%