Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Please fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/light-and-smart/light-and-smart.php+229
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.81MB] [CPU: ▼184.87ms] Passed 4 tests
Server-side resources used by Light And Smart
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 1.82 ▼1.02 | 8.17 ▼25.71 |
Dashboard /wp-admin | 1.84 ▼1.22 | 6.25 ▼38.51 |
Posts /wp-admin/edit.php | 1.84 ▼1.27 | 11.66 ▼23.67 |
Add New Post /wp-admin/post-new.php | 1.84 ▼3.59 | 7.20 ▼643.56 |
Media Library /wp-admin/upload.php | 1.84 ▼1.17 | 5.94 ▼31.69 |
Light & Smart Settings /wp-admin/options-general.php?page=light-smart-settings | 1.84 | 6.05 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Light And Smart
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,712 ▲116 | 15.91 ▲0.32 | 9.38 ▲2.36 | 52.07 ▲7.53 |
Dashboard /wp-admin | 2,980 ▲46 | 5.91 ▼0.01 | 140.57 ▼0.51 | 128.28 ▲8.55 |
Posts /wp-admin/edit.php | 2,746 ▲7 | 2.69 ▼0.01 | 66.63 ▼4.40 | 97.58 ▲8.60 |
Add New Post /wp-admin/post-new.php | 1,677 ▲177 | 18.87 ▲0.09 | 380.81 ▲23.80 | 111.37 ▲1.25 |
Media Library /wp-admin/upload.php | 1,814 ▲7 | 5.00 ▼0.03 | 150.19 ▼8.11 | 125.65 ▼3.56 |
Light & Smart Settings /wp-admin/options-general.php?page=light-smart-settings | 1,108 | 2.09 | 56.86 | 79.88 |
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
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/light-and-smart/light-and-smart.php+229
Trying to access array offset on value of type bool
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- 5 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=light-smart-settings
- > Notice in wp-content/plugins/light-and-smart/light-and-smart.php+345
Trying to access array offset on value of type bool
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 take a closer look at the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/light-and-smart/light-and-smart.php:35
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There are user-side issues you should fix
- > GET request to /wp-admin/options-general.php?page=light-smart-settings
- > Network (severe)
wp-content/plugins/light-and-smart/assets/css/admin-style.css?ver=5.8.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
10 plugin tags: facebook pixel, remove, wp-emoji, lean, generator...
light-and-smart/light-and-smart.php 92% from 13 tests
The main PHP script in "Light And Smart" version 0.1.0 is automatically included on every request by WordPress
Please take the time to fix the following:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin264 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 67 | 54 | 264 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.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 | 12 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 12 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 9 | |
▷ Named functions | 9 | 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 Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
No PNG images were found in this plugin