83% falcon

Code Review | Falcon - WordPress Optimizations & Tweaks

WordPress plugin Falcon - WordPress Optimizations & Tweaks scored83%from 54 tests.

About plugin

  • Plugin page: falcon
  • Plugin version: 2.5.0
  • PHP compatiblity: 7.4+
  • PHP version: 7.4.16
  • WordPress compatibility: 5.9-6.3.1
  • WordPress version: 6.3.1
  • First release: Dec 29, 2015
  • Latest release: Sep 18, 2023
  • Number of updates: 46
  • Update frequency: every 61.3 days
  • Top authors: gretathemes (56.52%)rilwis (45.65%)

Code review

54 tests

User reviews

5 reviews

Install metrics

1,000+ active /25,741 total downloads

Benchmarks

Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully

Server metrics [RAM: ▼0.45MB] [CPU: ▼11.10ms] Passed 4 tests

Analyzing server-side resources used by Falcon - WordPress Optimizations & Tweaks
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /3.72 ▲0.2640.54 ▲1.18
Dashboard /wp-admin3.38 ▲0.0835.28 ▼14.57
Posts /wp-admin/edit.php3.58 ▲0.2247.78 ▼2.84
Add New Post /wp-admin/post-new.php3.61 ▼2.2862.12 ▼28.17
Media Library /wp-admin/upload.php3.39 ▲0.1640.12 ▲7.31
Falcon /wp-admin/options-general.php?page=falcon3.3631.72

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

Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options
widget_recent-comments
db_upgraded
theysaidso_admin_options
can_compress_scripts
widget_theysaidso_widget
widget_recent-posts

Browser metrics Passed 4 tests

A check of browser resources used by Falcon - WordPress Optimizations & Tweaks
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /1,761 ▼97413.62 ▼0.761.33 ▼0.4827.99 ▼19.89
Dashboard /wp-admin1,220 ▼9685.24 ▼0.6376.10 ▼37.6434.15 ▼10.99
Posts /wp-admin/edit.php2,019 ▼701.86 ▼0.1635.44 ▼0.6132.79 ▼3.29
Add New Post /wp-admin/post-new.php3,008 ▲1,4947.64 ▼10.20182.80 ▼504.6280.63 ▲24.79
Media Library /wp-admin/upload.php1,319 ▼634.08 ▼0.1292.56 ▼5.8839.94 ▼5.35
Falcon /wp-admin/options-general.php?page=falcon1,2181.9824.5225.01

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

🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
  • Zombie WordPress options were found after uninstall: 6 options
    • db_upgraded
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • widget_recent-posts
    • can_compress_scripts
    • widget_recent-comments

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)
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 items
  • 5× PHP files trigger server-side errors or warnings when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function Falcon\\plugin_dir_url() in wp-content/plugins/falcon/falcon.php:16
    • > PHP Fatal error
      Uncaught Error: Class 'Falcon\\Base' not found in wp-content/plugins/falcon/src/Assets.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Falcon\\Base' not found in wp-content/plugins/falcon/src/Header.php:4
    • > PHP Fatal error
      Uncaught Error: Class 'Falcon\\Base' not found in wp-content/plugins/falcon/src/General.php:8
    • > PHP Fatal error
      Uncaught Error: Class 'Falcon\\Base' not found in wp-content/plugins/falcon/src/Admin.php:4

User-side errors Passed 1 test

🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found

Optimizations

Plugin configuration 90% from 29 tests

readme.txt 88% from 16 tests

Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Attributes that require attention:
  • Tags: Please delete some tags, you are using 14 tag instead of maximum 10
  • Screenshots: Please add descriptions for these screenshots #1, #2, #3, #4 in falcon/assets to your readme.txt
The official readme.txt is a good inspiration

falcon/falcon.php 92% from 13 tests

"Falcon - WordPress Optimizations & Tweaks" version 2.5.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
You should first fix the following items:
  • Domain Path: The domain path points to a folder that does not exist ("/languages/")

Code Analysis Passed 3 tests

File types Passed 1 test

🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected1,279 lines of code in 22 files:
LanguageFilesBlank linesComment linesLines of code
PHP192584161,189
CSS14170
JavaScript15015
JSON1005

PHP code Passed 2 tests

Analyzing cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity
Average complexity per logical line of code0.30
Average class complexity9.69
▷ Minimum class complexity1.00
▷ Maximum class complexity48.00
Average method complexity1.97
▷ Minimum method complexity1.00
▷ Maximum method complexity18.00
Code structure
Namespaces4
Interfaces0
Traits0
Classes13
▷ Abstract classes00.00%
▷ Concrete classes13100.00%
▷ Final classes00.00%
Methods118
▷ Static methods2016.95%
▷ Public methods11194.07%
▷ Protected methods00.00%
▷ Private methods75.93%
Functions6
▷ Named functions00.00%
▷ Anonymous functions6100.00%
Constants4
▷ Global constants4100.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected