10% flovidy

Code Review | Flovidy

WordPress plugin Flovidy scored10%from 54 tests.

About plugin

  • Plugin page: flovidy
  • Plugin version: 0.5
  • PHP version: 7.4.16
  • WordPress compatibility: 3.5-4.9.5
  • WordPress version: 6.3.1
  • First release: May 12, 2018
  • Latest release: May 29, 2018
  • Number of updates: 11
  • Update frequency: every 1.6 days
  • Top authors: chiefonboarding (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

100+ active /3,845 total downloads

Benchmarks

Plugin footprint 40% from 16 tests

Installer 0% from 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
It is recommended to fix the following installer errors
  • Install procedure validation failed for this plugin
    • > Warning in wp-content/plugins/flovidy/Flovidy_Plugin.php+32
    count(): Parameter must be an array or an object that implements Countable

Server metrics [RAM: ▲0.13MB] [CPU: ▼3.73ms] Passed 4 tests

A check of server-side resources used by Flovidy
No issues were detected with server-side resource usage
PageMemory (MB)CPU Time (ms)
Home /3.60 ▲0.1439.00 ▼4.80
Dashboard /wp-admin3.43 ▲0.1346.06 ▼4.03
Posts /wp-admin/edit.php3.55 ▲0.1951.02 ▲4.94
Add New Post /wp-admin/post-new.php6.01 ▲0.1382.58 ▼6.98
Media Library /wp-admin/upload.php3.36 ▲0.1334.47 ▲0.90
Flovidy /wp-admin/options-general.php?page=Flovidy_PluginSettings3.3229.75

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

How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 12 new files
Database: 1 new table, 21 new options
New tables
wp_ai_link
New WordPress options
can_compress_scripts
Flovidy_Plugin_de_ref
Flovidy_Plugin_es_ref
Flovidy_Plugin_uk_ref
Flovidy_Plugin_us_ref
Flovidy_Plugin_br_ref
widget_recent-comments
Flovidy_Plugin_cn_ref
Flovidy_Plugin__installed
Flovidy_Plugin_au_ref
...

Browser metrics Passed 4 tests

Flovidy: an overview of browser usage
Minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,913 ▲16713.94 ▼0.425.71 ▲3.5838.94 ▼6.15
Dashboard /wp-admin2,210 ▲224.85 ▼0.03109.15 ▼8.1839.19 ▼4.88
Posts /wp-admin/edit.php2,093 ▲41.98 ▼0.0740.43 ▲4.4334.87 ▲1.95
Add New Post /wp-admin/post-new.php1,545 ▲2518.04 ▼5.15582.69 ▼37.7452.22 ▲4.95
Media Library /wp-admin/upload.php1,386 ▼24.15 ▼0.0396.16 ▲0.6043.06 ▲1.24
Flovidy /wp-admin/options-general.php?page=Flovidy_PluginSettings1,0562.0526.9127.69

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

🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
  • The plugin did not uninstall successfully, leaving 1 table in the database
    • wp_ai_link
  • The uninstall procedure has failed, leaving 21 options in the database
    • widget_theysaidso_widget
    • Flovidy_Plugin_ca_ref
    • widget_recent-comments
    • Flovidy_Plugin_fr_ref
    • can_compress_scripts
    • Flovidy_Plugin_in_ref
    • Flovidy_Plugin_de_ref
    • theysaidso_admin_options
    • db_upgraded
    • Flovidy_Plugin_bitly_access_token
    • ...

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Everything seems fine, however this is by no means an exhaustive test

SRP 50% from 2 tests

🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
  • 1× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flovidy/flovidy.php:35

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side

Optimizations

Plugin configuration 97% 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:
  • Tags: There were no tags found
You can look at the official readme.txt

flovidy/flovidy.php Passed 13 tests

The main PHP file in "Flovidy" ver. 0.5 adds more information about the plugin and also serves as the entry point for this plugin
70 characters long description:
Localize amazon affiliate links to optimize affiliate commision income

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
There were no executable files found in this plugin1,027 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
PHP88826711
Pascal1471,560283
JavaScript16033

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity14.33
▷ Minimum class complexity1.00
▷ Maximum class complexity24.00
Average method complexity2.25
▷ Minimum method complexity1.00
▷ Maximum method complexity14.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes6
▷ Abstract classes00.00%
▷ Concrete classes6100.00%
▷ Final classes00.00%
Methods65
▷ Static methods00.00%
▷ Public methods4772.31%
▷ Protected methods1827.69%
▷ Private methods00.00%
Functions4
▷ Named functions4100.00%
▷ Anonymous functions00.00%
Constants2
▷ Global constants00.00%
▷ Class constants2100.00%
▷ Public constants2100.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