79% ffsystems

Code Review | FFSystems

WordPress plugin FFSystems scored79%from 54 tests.

About plugin

  • Plugin page: ffsystems
  • Plugin version: 1.0.1
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.4-5.7.2
  • WordPress version: 6.3.1
  • First release: May 21, 2021
  • Latest release: May 27, 2021
  • Number of updates: 4
  • Update frequency: every 1.5 days
  • Top authors: ffsystems (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /367 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully

Server metrics [RAM: ▲0.04MB] [CPU: ▲2.35ms] Passed 4 tests

A check of server-side resources used by FFSystems
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.50 ▲0.0442.76 ▲2.42
Dashboard /wp-admin3.35 ▲0.0559.98 ▲3.68
Posts /wp-admin/edit.php3.40 ▲0.0450.75 ▼0.44
Add New Post /wp-admin/post-new.php5.93 ▲0.0499.54 ▲3.73
Media Library /wp-admin/upload.php3.27 ▲0.0439.99 ▲5.38
FFSystems /wp-admin/options-general.php?page=ffsystems3.2434.28

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

How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_recent-posts
widget_recent-comments
widget_theysaidso_widget
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for FFSystems
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.33 ▼1.032.20 ▲0.0442.52 ▼2.13
Dashboard /wp-admin2,228 ▲255.86 ▲0.97121.06 ▲14.9843.36 ▼5.42
Posts /wp-admin/edit.php2,107 ▲102.03 ▲0.0341.83 ▲5.8235.92 ▼4.91
Add New Post /wp-admin/post-new.php1,548 ▲323.25 ▲0.31617.69 ▼38.6963.67 ▲1.22
Media Library /wp-admin/upload.php1,407 ▲104.20 ▼0.01106.39 ▼0.9347.30 ▲0.67
FFSystems /wp-admin/options-general.php?page=ffsystems8212.0126.2331.18

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

🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
  • Zombie WordPress options detected upon uninstall: 6 options
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • db_upgraded
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts

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
Smoke test failed, please fix the following
  • 2 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=ffsystems
    • > request to
    • > Notice in wp-config.php+20
    Undefined index: REQUEST_METHOD

SRP 50% from 2 tests

🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Almost there! Just fix the following items
  • 1× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ffsystems/ffsystems.php:218

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)
No browser errors were detected

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
5 plugin tags: reservation, delivery, restaurant, takeaway, ffsystems

ffsystems/ffsystems.php Passed 13 tests

The main file in "FFSystems" v. 1.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
70 characters long description:
An easy way to implement the FFSystems widget to your Wordpress sites.

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin157 lines of code in 4 files:
LanguageFilesBlank linesComment linesLines of code
PHP13871117
Markdown219031
SVG1009

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity
Average complexity per logical line of code0.17
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%
Functions13
▷ Named functions13100.00%
▷ Anonymous functions00.00%
Constants5
▷ Global constants00.00%
▷ Class constants5100.00%
▷ Public constants5100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant
FileSize - originalSize - compressedSavings
ffsystems.png10.81KB4.04KB▼ 62.60%