83% caspers-fly-in-cta

Code Review | Casper's Flyin' Call-to-Action

WordPress plugin Casper's Flyin' Call-to-Action scored83%from 54 tests.

About plugin

  • Plugin page: caspers-fly-in-cta
  • Plugin version: 2.0
  • PHP version: 7.4.16
  • WordPress compatibility: 4.0-5.7.1
  • WordPress version: 6.3.1
  • First release: Jan 22, 2016
  • Latest release: Apr 16, 2021
  • Number of updates: 39
  • Update frequency: every 49.0 days
  • Top authors: XAce90 (100%)

Code review

54 tests

User reviews

8 reviews

Install metrics

500+ active /9,092 total downloads


Plugin footprint 83% from 16 tests

Installer Passed 1 test

🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors

Server metrics [RAM: ▲0.08MB] [CPU: ▼1.97ms] Passed 4 tests

An overview of server-side resources used by Casper's Flyin' Call-to-Action
Normal server usage
PageMemory (MB)CPU Time (ms)
Home /3.53 ▲0.0735.05 ▼1.73
Dashboard /wp-admin3.39 ▲0.0944.18 ▼2.61
Posts /wp-admin/edit.php3.44 ▲0.0850.65 ▲6.21
Add New Post /wp-admin/post-new.php5.97 ▲0.0884.88 ▼0.08
Media Library /wp-admin/upload.php3.31 ▲0.0834.74 ▼3.45
Fly-in CTA /wp-admin/themes.php?page=caspers-flyin-cta3.3743.58

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

How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 19 new files
Database: no new tables, 6 new options
New WordPress options

Browser metrics Passed 4 tests

A check of browser resources used by Casper's Flyin' Call-to-Action
There were no issues detected in relation to browser resource usage
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,808 ▲6213.24 ▼1.144.44 ▲2.6843.50 ▲5.42
Dashboard /wp-admin2,211 ▲205.80 ▲0.90106.34 ▲4.7038.94 ▼5.58
Posts /wp-admin/edit.php2,097 ▲112.03 ▼0.0140.84 ▲4.6934.47 ▲0.02
Add New Post /wp-admin/post-new.php1,521 ▼1217.46 ▼5.91692.17 ▼9.2668.06 ▲14.25
Media Library /wp-admin/upload.php1,396 ▲114.21 ▲0.0494.24 ▼10.8246.59 ▲1.01
Fly-in CTA /wp-admin/themes.php?page=caspers-flyin-cta1,9116.59127.8958.34

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 detected upon uninstall: 6 options
    • theysaidso_admin_options
    • widget_theysaidso_widget
    • can_compress_scripts
    • db_upgraded
    • widget_recent-posts
    • widget_recent-comments

Smoke tests 75% from 4 tests

Server-side errors Passed 1 test

🔹 Test weight: 20 | This is a shallow check for 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 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
  • 6× PHP files trigger server errors when accessed directly:
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/caspers-fly-in-cta/css/bottom-flyin.css.php:6
    • > PHP Fatal error
      Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/caspers-fly-in-cta/caspers-flyin-cta.php:13
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/caspers-fly-in-cta/functions/options.php:2
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/caspers-fly-in-cta/functions/scripts-and-support.php:10
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/caspers-fly-in-cta/css/side-flyin.css.php:8
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/caspers-fly-in-cta/functions/admin/admin-page.php:6

User-side errors Passed 1 test

🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side


Plugin configuration 93% from 29 tests

readme.txt 94% from 16 tests

The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
These attributes need to be fixed:
  • Tags: Please reduce the number of tags, currently 16 tag instead of maximum 10
You can look at the official readme.txt

caspers-fly-in-cta/caspers-flyin-cta.php 92% from 13 tests

"Casper's Flyin' Call-to-Action" version 2.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please make the necessary changes and fix the following:
  • Main file name: The principal plugin file should be the same as the plugin slug ("caspers-fly-in-cta.php" instead of "caspers-flyin-cta.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
There were no executable files found in this plugin968 lines of code in 12 files:
LanguageFilesBlank linesComment linesLines of code

PHP code Passed 2 tests

A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.48
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
▷ Abstract classes00.00%
▷ Concrete classes00.00%
▷ Final classes00.00%
▷ Static methods00.00%
▷ Public methods00.00%
▷ Protected methods00.00%
▷ Private methods00.00%
▷ Named functions14100.00%
▷ Anonymous functions00.00%
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size 50% from 2 tests

Image compression 50% from 2 tests

All PNG images should be compressed to minimize bandwidth usage for end users
6 PNG files occupy 0.43MB with 0.28MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant
FileSize - originalSize - compressedSavings
assets/screenshot-5.png9.90KB4.90KB▼ 50.49%
assets/screenshot-3.png55.36KB21.91KB▼ 60.43%
assets/screenshot-1.png60.18KB28.01KB▼ 53.47%
assets/screenshot-2.png67.64KB24.89KB▼ 63.20%
(invalid) assets/screenshot-4.png44.20KB0.00KB▼ 100.00%