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
Installer ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▼8.57ms] Passed 4 tests
Server-side resources used by Flying Scripts
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.74 ▲0.27 | 42.01 ▼2.89 |
Dashboard /wp-admin | 3.62 ▲0.27 | 49.97 ▼14.60 |
Posts /wp-admin/edit.php | 3.67 ▲0.31 | 52.19 ▲2.94 |
Add New Post /wp-admin/post-new.php | 6.14 ▲0.25 | 86.98 ▼15.40 |
Media Library /wp-admin/upload.php | 3.48 ▲0.25 | 38.01 ▼1.38 |
Flying Scripts /wp-admin/options-general.php?page=flying-scripts | 3.46 | 35.15 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 14 new files
Database: no new tables, 10 new options
New WordPress options |
---|
db_upgraded |
flying_scripts_include_list |
widget_theysaidso_widget |
widget_recent-comments |
flying_scripts_disabled_pages |
can_compress_scripts |
widget_recent-posts |
FLYING_SCRIPTS_VERSION |
theysaidso_admin_options |
flying_scripts_timeout |
Browser metrics Passed 4 tests
Flying Scripts: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,797 ▲51 | 14.72 ▲0.56 | 1.78 ▲0.02 | 41.14 ▼2.58 |
Dashboard /wp-admin | 2,199 ▲22 | 5.61 ▲0.01 | 89.54 ▼11.14 | 39.11 ▼5.56 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.13 ▲0.12 | 39.43 ▲0.74 | 36.02 ▼1.46 |
Add New Post /wp-admin/post-new.php | 1,531 ▼4 | 23.38 ▲4.94 | 675.30 ▲23.06 | 54.12 ▼14.24 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.17 ▼0.14 | 99.13 ▼10.49 | 41.44 ▼2.81 |
Flying Scripts /wp-admin/options-general.php?page=flying-scripts | 926 | 1.99 | 21.54 | 25.05 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- Zombie WordPress options were found after uninstall: 10 options
- flying_scripts_include_list
- flying_scripts_timeout
- can_compress_scripts
- widget_recent-comments
- FLYING_SCRIPTS_VERSION
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- flying_scripts_disabled_pages
- theysaidso_admin_options
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)
Everything seems fine, however 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 items
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/flying-scripts/html-rewrite.php:64
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flying-scripts/inject-js.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flying-scripts/init-config.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flying-scripts/settings/index.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_attr() in wp-content/plugins/flying-scripts/settings/settings.php:16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
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
Attributes that need to be fixed:
- Screenshots: Add an image for screenshot #1 (Flying Scripts Settings)
flying-scripts/flying-scripts.php Passed 13 tests
Analyzing the main PHP file in "Flying Scripts" version 1.2.3
52 characters long description:
Download and execute JavaScript on user interaction.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin2,049 lines of code in 13 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 413 | 324 | 2,027 |
JavaScript | 1 | 2 | 0 | 22 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.56 |
Average class complexity | 193.50 |
▷ Minimum class complexity | 138.00 |
▷ Maximum class complexity | 249.00 |
Average method complexity | 5.28 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 66.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 90 | |
▷ Static methods | 1 | 1.11% |
▷ Public methods | 75 | 83.33% |
▷ Protected methods | 15 | 16.67% |
▷ Private methods | 0 | 0.00% |
Functions | 17 | |
▷ Named functions | 16 | 94.12% |
▷ Anonymous functions | 1 | 5.88% |
Constants | 23 | |
▷ Global constants | 23 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
No PNG files were detected