84% fm-adv

Code Review | FattoreMamma Advertising Plugin

WordPress plugin FattoreMamma Advertising Plugin scored84%from 54 tests.

About plugin

  • Plugin page: fm-adv
  • Plugin version: 0.3.3
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0.0-5.4.2
  • WordPress version: 6.3.1
  • First release: Jun 29, 2020
  • Latest release: Jun 29, 2020
  • Number of updates: 3
  • Update frequency: every 1.0 days
  • Top authors: colorinside (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /345 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.02MB] [CPU: ▼0.05ms] Passed 4 tests

Server-side resources used by FattoreMamma Advertising Plugin
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0144.52 ▲4.76
Dashboard /wp-admin3.32 ▲0.0250.49 ▲0.88
Posts /wp-admin/edit.php3.37 ▲0.0255.73 ▲11.19
Add New Post /wp-admin/post-new.php5.90 ▲0.0294.69 ▼3.65
Media Library /wp-admin/upload.php3.25 ▲0.0236.95 ▼2.19
FattoreMamma ADV /wp-admin/options-general.php?page=fm-adv-settings3.2130.93

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

Filesystem and database footprint
The plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options
theysaidso_admin_options
widget_theysaidso_widget
widget_recent-posts
widget_recent-comments
db_upgraded
can_compress_scripts

Browser metrics Passed 4 tests

This is an overview of browser requirements for FattoreMamma Advertising Plugin
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.23 ▼0.121.48 ▼0.3042.91 ▼0.16
Dashboard /wp-admin2,199 ▲245.57 ▼0.0490.82 ▼20.9338.19 ▼4.12
Posts /wp-admin/edit.php2,101 ▲12.02 ▲0.0438.92 ▼2.7535.78 ▼0.55
Add New Post /wp-admin/post-new.php1,529 ▼923.49 ▲0.27630.22 ▲2.7147.02 ▼8.34
Media Library /wp-admin/upload.php1,407 ▲74.22 ▲0.0498.16 ▼9.4944.83 ▼0.05
FattoreMamma ADV /wp-admin/options-general.php?page=fm-adv-settings7882.0327.6628.67

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Zombie WordPress options were found after uninstall: 6 options
    • widget_recent-comments
    • widget_recent-posts
    • can_compress_scripts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected

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
  • 1× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function current_user_can() in wp-content/plugins/fm-adv/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)
Everything seems fine on the user side

Optimizations

Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need your attention:
  • Contributors: Plugin contributors field is missing
Please take inspiration from this readme.txt

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

The entry point to "FattoreMamma Advertising Plugin" version 0.3.3 is a PHP file that has certain tags in its header comment area
The following require your attention:
  • Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin123 lines of code in 3 files:
LanguageFilesBlank linesComment linesLines of code
PHP2475284
PO File1101039

PHP code Passed 2 tests

This is a short overview of cyclomatic complexity and code structure for this plugin
No complexity issues detected
Cyclomatic complexity
Average complexity per logical line of code0.22
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%
Functions6
▷ Named functions6100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.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 are no PNG files in this plugin