78% fm-tools

Code Review | FattoreMamma Tools

WordPress plugin FattoreMamma Tools scored 78% from 54 tests.

About plugin

  • Plugin page: fm-tools
  • Plugin version: 2.1.7
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.2.4
  • WordPress version: 5.9.2
  • First release: Mar 23, 2018
  • Latest release: Nov 6, 2019
  • Number of updates: 37
  • Update frequency: every 16.0 days
  • Top authors: colorinside (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active / 786 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices

Server metrics [RAM: ▼1.09MB] [CPU: ▼346.21ms] Passed 4 tests

An overview of server-side resources used by FattoreMamma Tools
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.54 ▲0.03119.30 ▲66.61
Dashboard /wp-admin3.24 ▼0.1719.29 ▼15.26
Posts /wp-admin/edit.php3.24 ▼0.4020.47 ▼18.46
Add New Post /wp-admin/post-new.php3.24 ▼3.7320.20 ▼1,345.64
Media Library /wp-admin/upload.php3.24 ▼0.0519.45 ▼5.47
FattoreMamma Tools /wp-admin/options-general.php?page=fm_tools_page3.2420.78

Server storage [IO: ▲0.02MB] [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, no new options

Browser metrics Passed 4 tests

An overview of browser requirements for FattoreMamma Tools
Normal browser usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /3,768 ▲2615.88 ▲0.036.43 ▼1.762.27 ▲0.07
Dashboard /wp-admin2,894 ▲346.19 ▲0.12124.71 ▼2.12191.27 ▲24.60
Posts /wp-admin/edit.php2,693 ▲233.23 ▼0.0269.64 ▼41.01206.69 ▲46.41
Add New Post /wp-admin/post-new.php1,664 ▼4717.24 ▼4.10421.19 ▼17.36159.16 ▼34.92
Media Library /wp-admin/upload.php1,700 ▲55.49 ▲0.03187.17 ▲24.83192.75 ▼44.34
FattoreMamma Tools /wp-admin/options-general.php?page=fm_tools_page1,0032.3854.52133.92

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
  • The plugin did not uninstall gracefully
    • > Notice in wp-content/plugins/fm-tools/includes/class-fm-tools-admin.php+27
    Undefined index: active

Smoke tests 50% from 4 tests

Server-side errors 0% from 1 test

🔹 Test weight: 20 | This is a shallow check for server-side errors
Smoke test failed, please fix the following
  • 3 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=fm_tools_page
    • > Notice in wp-content/plugins/fm-tools/includes/class-fm-tools-settings.php+222
    Undefined index: active

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
Please 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 current_user_can() in wp-content/plugins/fm-tools/uninstall.php:7

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 issues were found

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

Often overlooked, readme.txt is one of the most important files in your plugin
Please fix the following attributes:
  • Contributors: The plugin contributors field is missing
You can look at the official readme.txt

fm-tools/fm-tools.php 92% from 13 tests

"FattoreMamma Tools" version 2.1.7's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please make the necessary changes and fix the following:
  • Description: Please don't use more than 140 characters for the plugin description (currently 184 characters long)

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
Everything looks great! No dangerous files found in this plugin376 lines of code in 6 files:
LanguageFilesBlank linesComment linesLines of code
PHP5139155319
PO File1151757

PHP code Passed 2 tests

Cyclomatic complexity and code structure are the fingerprint of this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.39
Average class complexity8.00
▷ Minimum class complexity6.00
▷ Maximum class complexity10.00
Average method complexity2.31
▷ Minimum method complexity1.00
▷ Maximum method complexity6.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods16
▷ Static methods00.00%
▷ Public methods16100.00%
▷ Protected methods00.00%
▷ Private methods00.00%
Functions8
▷ Named functions8100.00%
▷ Anonymous functions00.00%
Constants6
▷ Global constants233.33%
▷ Class constants466.67%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There were not PNG files found in your plugin