84% flying-pages

Code Review | Flying Pages

WordPress plugin Flying Pages scored84%from 54 tests.

About plugin

  • Plugin page: flying-pages
  • Plugin version: 2.4.6
  • PHP compatiblity: 5.6+
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5-6.3
  • WordPress version: 6.3.1
  • First release: Aug 26, 2019
  • Latest release: Aug 9, 2023
  • Number of updates: 94
  • Update frequency: every 15.4 days
  • Top authors: gijo (100%)

Code review

54 tests

User reviews

77 reviews

Install metrics

20,000+ active /180,330 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.00MB] [CPU: ▼12.36ms] Passed 4 tests

A check of server-side resources used by Flying Pages
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.47 ▲0.0138.91 ▼8.70
Dashboard /wp-admin3.32 ▼0.0349.44 ▼16.33
Posts /wp-admin/edit.php3.37 ▲0.0146.75 ▲0.72
Add New Post /wp-admin/post-new.php5.90 ▲0.0183.76 ▼22.83
Media Library /wp-admin/upload.php3.24 ▲0.0136.02 ▼1.59
Flying Pages /wp-admin/options-general.php?page=flying-pages3.2732.62

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

Filesystem and database footprint
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 12 new options
New WordPress options
flying_pages_config_hover_delay
theysaidso_admin_options
FLYING_PAGES_VERSION
db_upgraded
widget_recent-posts
can_compress_scripts
flying_pages_config_max_rps
flying_pages_config_disable_on_login
flying_pages_config_ignore_keywords
widget_recent-comments
...

Browser metrics Passed 4 tests

A check of browser resources used by Flying Pages
This plugin has a minimal impact on browser resources
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,793 ▲3214.24 ▼0.111.91 ▲0.3844.14 ▲5.19
Dashboard /wp-admin2,196 ▲195.66 ▲0.0191.34 ▼4.6542.86 ▲2.92
Posts /wp-admin/edit.php2,104 ▲41.96 ▼0.0534.58 ▼4.8632.94 ▼6.05
Add New Post /wp-admin/post-new.php1,531 ▲523.29 ▲0.20658.09 ▼10.3853.10 ▼4.52
Media Library /wp-admin/upload.php1,401 ▲14.18 ▲0.0697.43 ▼23.4743.62 ▼5.64
Flying Pages /wp-admin/options-general.php?page=flying-pages1,0521.9622.4428.67

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

🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
  • Zombie WordPress options were found after uninstall: 12 options
    • db_upgraded
    • flying_pages_config_hover_delay
    • flying_pages_config_delay
    • theysaidso_admin_options
    • flying_pages_config_ignore_keywords
    • can_compress_scripts
    • flying_pages_config_max_rps
    • flying_pages_config_disable_on_login
    • widget_recent-comments
    • FLYING_PAGES_VERSION
    • ...

Smoke tests 75% 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 no errors were found, 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
Please take a closer look at the following
  • 4× PHP files trigger errors when accessed directly with GET requests:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flying-pages/inject-js.php:24
    • > PHP Fatal error
      Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/flying-pages/settings-form.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flying-pages/settings/index.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flying-pages/init-config.php:18

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 Passed 29 tests

readme.txt Passed 16 tests

It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
8 plugin tags: seo, optimization, performance, fast, http2...

flying-pages/flying-pages.php Passed 13 tests

The main PHP script in "Flying Pages" version 2.4.6 is automatically included on every request by WordPress
42 characters long description:
Load inner pages instantly, intelligently!

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected395 lines of code in 11 files:
LanguageFilesBlank linesComment linesLines of code
PHP104523394
JavaScript1001

PHP code Passed 2 tests

This is a very shot review of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity
Average complexity per logical line of code0.63
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%
Functions10
▷ Named functions10100.00%
▷ Anonymous functions00.00%
Constants1
▷ Global constants1100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

PNG files should be compressed to save space and minimize bandwidth usage
PNG images were not found in this plugin