68% fley-decisions

Code Review | fley Decisions

WordPress plugin fley Decisions scored68%from 54 tests.

About plugin

  • Plugin page: fley-decisions
  • Plugin version: 1.0
  • PHP compatiblity: 7.0+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-5.3
  • WordPress version: 6.3.1
  • First release: Mar 19, 2020
  • Latest release: Mar 19, 2020
  • Number of updates: 2
  • Update frequency: N/A
  • Top authors: flodji (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /365 total downloads

Benchmarks

Plugin footprint 65% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▼0.95MB] [CPU: ▼31.85ms] Passed 4 tests

An overview of server-side resources used by fley Decisions
This plugin has minimal impact on server resources
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0135.73 ▼1.81
Dashboard /wp-admin2.99 ▼0.3122.18 ▼22.35
Posts /wp-admin/edit.php3.00 ▼0.3622.83 ▼26.22
Add New Post /wp-admin/post-new.php2.99 ▼2.8924.16 ▼65.57
Media Library /wp-admin/upload.php2.99 ▼0.2322.20 ▼13.25
fley Decisions /wp-admin/options-general.php?page=fley-decisions/fley-decisions.php3.0023.34

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

How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
db_upgraded
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
can_compress_scripts

Browser metrics Passed 4 tests

fley Decisions: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,825 ▲7913.36 ▼1.311.66 ▼0.0537.53 ▼4.27
Dashboard /wp-admin2,226 ▲355.02 ▲0.08101.66 ▼3.5938.95 ▼3.08
Posts /wp-admin/edit.php2,117 ▲282.32 ▲0.2940.68 ▲0.0833.45 ▼3.98
Add New Post /wp-admin/post-new.php1,540 ▲1018.35 ▲0.18618.91 ▲23.3436.65 ▼15.58
Media Library /wp-admin/upload.php1,414 ▲264.42 ▲0.1898.34 ▼2.2742.32 ▼0.88
fley Decisions /wp-admin/options-general.php?page=fley-decisions/fley-decisions.php1,2822.4349.4631.15

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
  • Uninstall procedure had uncaught errors
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
  • The uninstall procedure has failed, leaving 6 options in the database
    • db_upgraded
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts
    • widget_recent-posts

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
    • > GET request to /wp-admin/options-general.php?page=fley-decisions/fley-decisions.php
    • > User notice in wp-includes/functions.php+5905
    Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)

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
Almost there! Just fix the following items
  • 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/fley-decisions/fley-decisions.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 97% from 29 tests

readme.txt 94% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
  • Screenshots: Screenshot #1 (screenshot-1.jpg) image not found
You can take inspiration from this readme.txt

fley-decisions/fley-decisions.php Passed 13 tests

The principal PHP file in "fley Decisions" v. 1.0 is loaded by WordPress automatically on each request
77 characters long description:
fley Decisions nimmt Dir und den Besuchern Deiner Webseite Entscheidungen ab.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected340 lines of code in 5 files:
LanguageFilesBlank linesComment linesLines of code
PHP22010200
PO File1113189126
CSS1009
JavaScript1105

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity
Average complexity per logical line of code0.13
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%
Functions9
▷ Named functions9100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
No PNG images were found in this plugin