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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.37MB] [CPU: ▼4.50ms] Passed 4 tests
Analyzing server-side resources used by SquareOffs
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.96 ▲0.50 | 38.86 ▼2.20 |
Dashboard /wp-admin | 3.80 ▲0.50 | 48.70 ▼0.29 |
Posts /wp-admin/edit.php | 3.85 ▲0.50 | 49.66 ▲2.63 |
Add New Post /wp-admin/post-new.php | 5.87 ▼0.01 | 74.56 ▼18.15 |
Media Library /wp-admin/upload.php | 3.73 ▲0.51 | 43.37 ▲12.97 |
Settings /wp-admin/admin.php?page=squareoffs-options | 3.73 | 45.44 |
SquareOffs /wp-admin/admin.php?page=squareoffs | 3.73 | 54.64 |
Server storage [IO: ▲9.06MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 80 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for SquareOffs
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,887 ▲130 | 13.46 ▼1.13 | 2.11 ▲0.27 | 39.10 ▼9.23 |
Dashboard /wp-admin | 2,259 ▲70 | 4.96 ▼0.00 | 98.25 ▼22.75 | 65.23 ▲20.38 |
Posts /wp-admin/edit.php | 2,141 ▲52 | 2.02 ▲0.03 | 38.87 ▲0.46 | 34.93 ▲4.14 |
Add New Post /wp-admin/post-new.php | 6,448 ▲4,915 | 28.15 ▲4.92 | 944.28 ▲277.26 | 44.78 ▼8.82 |
Media Library /wp-admin/upload.php | 1,795 ▲404 | 14.36 ▲10.14 | 319.53 ▲223.75 | 68.99 ▲22.59 |
Settings /wp-admin/admin.php?page=squareoffs-options | 1,714 | 23.61 | 421.84 | 105.99 |
SquareOffs /wp-admin/admin.php?page=squareoffs | 1,659 | 17.89 | 366.07 | 47.73 |
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
Please fix the following items
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 0% 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
- 6× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/squareoffs/js/templates/tinymce-preview.php
- > /wp-content/plugins/squareoffs/js/templates/modal-insert-content-default.php
- > /wp-content/plugins/squareoffs/js/templates/modal-insert.php
- > /wp-content/plugins/squareoffs/js/templates/modal-insert-content-login.php
- > /wp-content/plugins/squareoffs/php/templates/iframe.php
- > /wp-content/plugins/squareoffs/js/templates/modal-insert-content-disconnected.php
- 44× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/squareoffs/php/templates/iframe.php on line 13
- > PHP Fatal error
Uncaught Error: Call to undefined function squareoffs_get_api() in wp-content/plugins/squareoffs/php/admin/details.php:9
- > PHP Notice
Undefined variable: atts in wp-content/plugins/squareoffs/php/templates/iframe.php on line 11
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/squareoffs/php/templates/iframe.php on line 12
- > PHP Notice
Undefined variable: atts in wp-content/plugins/squareoffs/php/templates/iframe.php on line 12
- > PHP Fatal error
Uncaught Error: Call to undefined function squareoffs_get_squareoff_data() in wp-content/plugins/squareoffs/php/admin/edit.php:11
- > PHP Notice
Trying to access array offset on value of type null in wp-content/plugins/squareoffs/php/templates/iframe.php on line 23
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/squareoffs/php/admin/list.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/squareoffs/php/admin/options.php:8
- > PHP Notice
Undefined variable: atts in wp-content/plugins/squareoffs/php/templates/iframe.php on line 23
- > PHP Notice
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)
These are user-side errors you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=squareoffs
- > Console-api (warning) in wp-content/plugins/squareoffs/build/index.js?ver=990ea6e32208db570c843d3ec9db0c96+19456:10
You are using a whole package of antd, please use https://www.npmjs.com/package/babel-plugin-import to reduce app bundle size.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=squareoffs
- > Javascript (severe) in unknown
/wp-content/plugins/squareoffs/build/index.js?ver=990ea6e32208db570c843d3ec9db0c96 95569:29 Uncaught TypeError: Cannot read properties of undefined (reading 'api_connected')
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% 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
Attributes that require attention:
- Tags: Too many tags (12 tag instead of maximum 10); only the first 5 tags are used in your directory listing
- Donate link: Invalid url: ""
squareoffs/plugin.php 85% from 13 tests
The primary PHP file in "SquareOffs" version 2.4.1 is used by WordPress to initiate all plugin functionality
The following require your attention:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("squareoffs.php" instead of "plugin.php")
- 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 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected75,419 lines of code in 55 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 8 | 18,398 | 9,083 | 71,238 |
PHP | 37 | 873 | 1,130 | 2,971 |
CSS | 8 | 212 | 52 | 1,145 |
Markdown | 2 | 27 | 0 | 65 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 21.67 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 66.00 |
Average method complexity | 2.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 6 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 6 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 67 | |
▷ Static methods | 1 | 1.49% |
▷ Public methods | 62 | 92.54% |
▷ Protected methods | 3 | 4.48% |
▷ Private methods | 2 | 2.99% |
Functions | 71 | |
▷ Named functions | 70 | 98.59% |
▷ Anonymous functions | 1 | 1.41% |
Constants | 4 | |
▷ Global constants | 4 | 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
14 PNG files occupy 0.30MB with 0.17MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/wp-datepicker-styling/screenshots/ocean.png | 28.17KB | 11.94KB | ▼ 57.62% |
css/wp-datepicker-styling/screenshots/mint.png | 28.44KB | 11.79KB | ▼ 58.56% |
css/wp-datepicker-styling/screenshots/fresh.png | 28.13KB | 11.88KB | ▼ 57.79% |
css/wp-datepicker-styling/screenshots/evergreen.png | 28.60KB | 11.81KB | ▼ 58.70% |
css/wp-datepicker-styling/screenshots/sunrise.png | 28.15KB | 11.95KB | ▼ 57.57% |