Benchmarks
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
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 35.05 ▼1.73 |
Dashboard /wp-admin | 3.39 ▲0.09 | 44.18 ▼2.61 |
Posts /wp-admin/edit.php | 3.44 ▲0.08 | 50.65 ▲6.21 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 84.88 ▼0.08 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 34.74 ▼3.45 |
Fly-in CTA /wp-admin/themes.php?page=caspers-flyin-cta | 3.37 | 43.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 |
---|
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-comments |
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
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲62 | 13.24 ▼1.14 | 4.44 ▲2.68 | 43.50 ▲5.42 |
Dashboard /wp-admin | 2,211 ▲20 | 5.80 ▲0.90 | 106.34 ▲4.70 | 38.94 ▼5.58 |
Posts /wp-admin/edit.php | 2,097 ▲11 | 2.03 ▼0.01 | 40.84 ▲4.69 | 34.47 ▲0.02 |
Add New Post /wp-admin/post-new.php | 1,521 ▼12 | 17.46 ▼5.91 | 692.17 ▼9.26 | 68.06 ▲14.25 |
Media Library /wp-admin/upload.php | 1,396 ▲11 | 4.21 ▲0.04 | 94.24 ▼10.82 | 46.59 ▲1.01 |
Fly-in CTA /wp-admin/themes.php?page=caspers-flyin-cta | 1,911 | 6.59 | 127.89 | 58.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
- > PHP Fatal error
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
Optimizations
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
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:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 68 | 84 | 723 |
JavaScript | 3 | 20 | 30 | 157 |
Markdown | 1 | 36 | 0 | 85 |
CSS | 1 | 0 | 0 | 3 |
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 code | 0.48 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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 | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-5.png | 9.90KB | 4.90KB | ▼ 50.49% |
assets/screenshot-3.png | 55.36KB | 21.91KB | ▼ 60.43% |
assets/screenshot-1.png | 60.18KB | 28.01KB | ▼ 53.47% |
assets/screenshot-2.png | 67.64KB | 24.89KB | ▼ 63.20% |
(invalid) assets/screenshot-4.png | 44.20KB | 0.00KB | ▼ 100.00% |