78% flow-by-ilys

Code Review | Flow by ilys

WordPress plugin Flow by ilys scored78%from 54 tests.

About plugin

  • Plugin page: flow-by-ilys
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-4.7.3
  • WordPress version: 6.3.1
  • First release: Apr 7, 2017
  • Latest release: Apr 7, 2017
  • Number of updates: 7
  • Update frequency: every 0.1 days
  • Top authors: ilys (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /870 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors

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

Analyzing server-side resources used by Flow by ilys
Server-side resource usage in normal parameters
PageMemory (MB)CPU Time (ms)
Home /3.51 ▲0.0549.69 ▲4.49
Dashboard /wp-admin3.34 ▼0.0045.63 ▼18.74
Posts /wp-admin/edit.php3.46 ▲0.1050.08 ▲3.10
Add New Post /wp-admin/post-new.php5.95 ▲0.0691.10 ▼10.06
Media Library /wp-admin/upload.php3.27 ▲0.0434.44 ▼1.64
Flow by ilys /wp-admin/options-general.php?page=ive_options3.2431.71

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

A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 17 new files
Database: no new tables, 7 new options
New WordPress options
theysaidso_admin_options
db_upgraded
ive_tracking
widget_theysaidso_widget
can_compress_scripts
widget_recent-posts
widget_recent-comments

Browser metrics Passed 4 tests

Checking browser requirements for Flow by ilys
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,837 ▲9113.18 ▼1.252.29 ▲0.4143.00 ▼0.62
Dashboard /wp-admin2,215 ▲304.84 ▼0.02100.81 ▼18.5542.27 ▲0.24
Posts /wp-admin/edit.php2,101 ▲92.01 ▲0.0142.96 ▲2.8735.95 ▲1.20
Add New Post /wp-admin/post-new.php1,538 ▲2523.34 ▲5.86670.08 ▲61.0434.38 ▼9.43
Media Library /wp-admin/upload.php1,397 ▲94.21 ▲0.01101.28 ▲5.9945.77 ▲2.37
Flow by ilys /wp-admin/options-general.php?page=ive_options9672.0224.1827.14

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
  • The uninstall procedure has failed, leaving 7 options in the database
    • ive_tracking
    • widget_recent-posts
    • db_upgraded
    • widget_theysaidso_widget
    • theysaidso_admin_options
    • can_compress_scripts
    • widget_recent-comments

Smoke tests 50% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test

SRP 0% 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
Please fix the following
  • 1× PHP files output text when accessed directly:
    • > /wp-content/plugins/flow-by-ilys/templates/modal_template.php
  • 2× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function _e() in wp-content/plugins/flow-by-ilys/templates/settings.php:12
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/flow-by-ilys/inc/admin.php:17

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected

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
These attributes need your attention:
  • Contributors: The plugin contributors field is not present
You can take inspiration from this readme.txt

flow-by-ilys/Ilys-flow.php 92% from 13 tests

The main PHP file in "Flow by ilys" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
Please take the time to fix the following:
  • Main file name: Please rename the main PHP file in this plugin to the plugin slug ("flow-by-ilys.php" instead of "Ilys-flow.php")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin7,957 lines of code in 10 files:
LanguageFilesBlank linesComment linesLines of code
JavaScript49041,1487,386
CSS1454316
PHP58528255

PHP code Passed 2 tests

A short review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.17
Average class complexity3.33
▷ Minimum class complexity1.00
▷ Maximum class complexity6.00
Average method complexity1.41
▷ Minimum method complexity1.00
▷ Maximum method complexity4.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods17
▷ Static methods317.65%
▷ Public methods1482.35%
▷ Protected methods00.00%
▷ Private methods317.65%
Functions0
▷ Named functions00.00%
▷ Anonymous functions00.00%
Constants4
▷ Global constants375.00%
▷ Class constants125.00%
▷ Public constants1100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
4 PNG files occupy 0.32MB with 0.29MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/img/FlowHelp.png39.02KB0.66KB▼ 98.30%
assets/img/NinjaModeSwitch.png47.53KB0.57KB▼ 98.80%
assets/img/FlowTabInEditor.png213.25KB2.80KB▼ 98.69%
assets/img/ilysLogo.png31.53KB10.46KB▼ 66.82%