Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.04MB] [CPU: ▼171.62ms] Passed 4 tests
Analyzing server-side resources used by Script Logic
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.71 ▲0.88 | 64.90 ▲28.97 |
Dashboard /wp-admin | 3.10 ▲0.04 | 52.50 ▼2.61 |
Posts /wp-admin/edit.php | 3.18 ▲0.07 | 52.22 ▼4.55 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 107.80 ▼686.54 |
Media Library /wp-admin/upload.php | 3.04 ▲0.04 | 39.84 ▲7.21 |
Script Logic /wp-admin/options-general.php?page=sb_scriptlogic_options | 3.03 | 32.98 |
Server storage [IO: ▲0.07MB] [DB: ▲0.12MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 7 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
An overview of browser requirements for Script Logic
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,713 ▲76 | 15.85 ▲0.22 | 14.71 ▲3.91 | 51.75 ▼5.42 |
Dashboard /wp-admin | 2,980 ▲49 | 5.98 ▼0.23 | 155.51 ▼13.02 | 121.89 ▼2.28 |
Posts /wp-admin/edit.php | 2,749 ▲10 | 2.73 ▲0.01 | 74.76 ▼2.82 | 100.41 ▲4.63 |
Add New Post /wp-admin/post-new.php | 1,690 ▲75 | 15.73 ▼5.52 | 459.52 ▲118.26 | 112.20 ▼4.06 |
Media Library /wp-admin/upload.php | 1,829 ▲22 | 5.04 ▲0.03 | 178.36 ▲7.74 | 129.83 ▲3.48 |
Script Logic /wp-admin/options-general.php?page=sb_scriptlogic_options | 1,466 | 2.51 | 74.25 | 104.36 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.12MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=sb_scriptlogic_options
- > User deprecated in wp-includes/functions.php+5221
screen_icon is deprecated since version 3.8.0 with no alternative available.
- > GET request to /wp-admin/options-general.php?page=sb_scriptlogic_options
- > User deprecated in wp-includes/functions.php+5221
get_screen_icon is deprecated since version 3.8.0 with no alternative available.
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
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/script-logic/script-logic.php:24
- > PHP Fatal error
Uncaught Error: Call to undefined function screen_icon() in wp-content/plugins/script-logic/options.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=sb_scriptlogic_options
- > Network (severe)
wp-content/plugins/script-logic/css/images/ui-bg_flat_75_ffffff_40x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=sb_scriptlogic_options
- > Network (severe)
wp-content/plugins/script-logic/css/images/ui-bg_glass_75_e6e6e6_1x400.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=sb_scriptlogic_options
- > Network (severe)
wp-content/plugins/script-logic/css/images/ui-bg_highlight-soft_75_cccccc_1x100.png - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/options-general.php?page=sb_scriptlogic_options
- > Network (severe)
wp-content/plugins/script-logic/css/images/ui-bg_glass_65_ffffff_1x400.png - Failed to load resource: the server responded with a status of 404 (Not Found)
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 require attention:
- Donate link: Invalid URI ("")
script-logic/script-logic.php Passed 13 tests
The entry point to "Script Logic" version 0.3 is a PHP file that has certain tags in its header comment area
68 characters long description:
Control scripts & stylesheets with WP's conditional tags is_home etc
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
Everything looks great! No dangerous files found in this plugin688 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 45 | 44 | 395 |
PHP | 2 | 34 | 38 | 293 |
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.43 |
Average class complexity | 33.00 |
▷ Minimum class complexity | 33.00 |
▷ Maximum class complexity | 33.00 |
Average method complexity | 4.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 15.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 10 | |
▷ Static methods | 4 | 40.00% |
▷ Public methods | 10 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
2 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/cf7-js.png | 8.83KB | 4.24KB | ▼ 51.94% |
images/cf7-css.png | 8.32KB | 4.19KB | ▼ 49.59% |