84% flywp

Code Review | FlyWP Helper

WordPress plugin FlyWP Helper scored84%from 54 tests.

About plugin

  • Plugin page: flywp
  • Plugin version: 0.3.3
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.0-6.2
  • WordPress version: 6.3.1
  • First release: May 10, 2023
  • Latest release: Oct 5, 2023
  • Number of updates: 13
  • Update frequency: every 11.8 days
  • Top authors: tareq1988 (61.54%)flywp (46.15%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /362 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: ▲0.07MB] [CPU: ▼7.19ms] Passed 4 tests

An overview of server-side resources used by FlyWP Helper
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.55 ▲0.0936.46 ▼3.94
Dashboard /wp-admin3.39 ▲0.0453.56 ▼13.44
Posts /wp-admin/edit.php3.50 ▲0.1449.77 ▲2.76
Add New Post /wp-admin/post-new.php5.97 ▲0.0886.05 ▼14.14
Media Library /wp-admin/upload.php3.31 ▲0.0839.82 ▲2.79

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

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

Browser metrics Passed 4 tests

A check of browser resources used by FlyWP Helper
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,792 ▲3114.28 ▲0.031.75 ▲0.0736.32 ▼4.64
Dashboard /wp-admin2,201 ▲245.63 ▼0.0487.84 ▼1.7542.73 ▲2.34
Posts /wp-admin/edit.php2,103 ▲32.02 ▲0.0435.40 ▼2.1035.23 ▼0.19
Add New Post /wp-admin/post-new.php1,529 ▲323.32 ▼0.22593.07 ▼91.6667.55 ▲17.40
Media Library /wp-admin/upload.php1,397 ▼04.14 ▼0.07101.39 ▼18.5647.47 ▲1.08

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

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
  • This plugin did not uninstall successfully, leaving 6 options in the database
    • widget_theysaidso_widget
    • db_upgraded
    • can_compress_scripts
    • theysaidso_admin_options
    • widget_recent-comments
    • widget_recent-posts

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test

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 take a closer look at the following
  • 7× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/flywp/vendor/wedevs/wp-utils/vendor/tareq1988/wp-php-cs-fixer/loader.php' (include_path='.:/usr/share/php') in wp-content/plugins/flywp/vendor/wedevs/wp-utils/.php-cs-fixer.dist.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/flywp/views/admin.php:6
    • > PHP Warning
      require_once(wp-content/plugins/flywp/vendor/tareq1988/wp-php-cs-fixer/loader.php): failed to open stream: No such file or directory in wp-content/plugins/flywp/.php-cs-fixer.dist.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function flywp() in wp-content/plugins/flywp/views/op-cache.php:4
    • > PHP Warning
      require_once(wp-content/plugins/flywp/vendor/wedevs/wp-utils/vendor/tareq1988/wp-php-cs-fixer/loader.php): failed to open stream: No such file or directory in wp-content/plugins/flywp/vendor/wedevs/wp-utils/.php-cs-fixer.dist.php on line 3
    • > PHP Fatal error
      require_once(): Failed opening required 'wp-content/plugins/flywp/vendor/tareq1988/wp-php-cs-fixer/loader.php' (include_path='.:/usr/share/php') in wp-content/plugins/flywp/.php-cs-fixer.dist.php on line 3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function __() in wp-content/plugins/flywp/views/page-cache.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side

Optimizations

Plugin configuration 97% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need your attention:
  • Requires php: Invalid version format
The official readme.txt might help

flywp/flywp.php Passed 13 tests

The principal PHP file in "FlyWP Helper" v. 0.3.3 is loaded by WordPress automatically on each request
23 characters long description:
Helper plugin for FlyWP

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
There were no executable files found in this plugin2,116 lines of code in 42 files:
LanguageFilesBlank linesComment linesLines of code
PHP354669941,744
CSS2731249
JSON10061
Markdown120034
JavaScript26323
SVG1005

PHP code Passed 2 tests

This plugin's cyclomatic complexity and code structure detailed below
This plugin has no cyclomatic complexity issues
Cyclomatic complexity
Average complexity per logical line of code0.41
Average class complexity9.08
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity2.56
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces7
Interfaces0
Traits4
Classes22
▷ Abstract classes00.00%
▷ Concrete classes22100.00%
▷ Final classes14.55%
Methods136
▷ Static methods2216.18%
▷ Public methods11886.76%
▷ Protected methods21.47%
▷ Private methods1611.76%
Functions3
▷ Named functions133.33%
▷ Anonymous functions266.67%
Constants10
▷ Global constants660.00%
▷ Class constants440.00%
▷ Public constants4100.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin