Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼8.31ms] Passed 4 tests
Server-side resources used by Square Sync
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.01 | 36.23 ▼8.30 |
Dashboard /wp-admin | 3.31 ▲0.01 | 44.67 ▼11.32 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 43.35 ▼3.30 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 85.89 ▼10.31 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 36.97 ▲1.88 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 4 new files
Database: no new tables, 11 new options
New WordPress options |
---|
theysaidso_admin_options |
square_sync_crop_y |
square_sync_image_x |
square_sync_crop_x |
widget_theysaidso_widget |
square_sync_version |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
A check of browser resources used by Square Sync
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 13.22 ▼1.46 | 1.92 ▲0.08 | 41.83 ▼1.58 |
Dashboard /wp-admin | 2,210 ▲22 | 5.87 ▼0.03 | 99.48 ▼14.31 | 38.16 ▼8.98 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.01 ▲0.03 | 35.06 ▼1.84 | 29.98 ▼4.85 |
Add New Post /wp-admin/post-new.php | 1,536 ▲3 | 23.27 ▲0.14 | 676.46 ▼4.44 | 57.55 ▲3.31 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.21 ▲0.01 | 97.43 ▼12.38 | 42.07 ▼1.25 |
Square Sync /wp-admin/square-sync.php | 26 | 0.44 | 0.16 | 13.36 |
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
These items require your attention
- Zombie WordPress options were found after uninstall: 6 options
- widget_recent-comments
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
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
The following issues need your attention
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/square-sync/square-sync.php:47
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Please take a look at the following user-side issues
- > GET request to /wp-admin/square-sync.php
- > Network (severe)
wp-admin/square-sync.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Donate link: Invalid URI found ("www.ryandonkersgoed.com")
- Screenshots: Screenshot #1 (This is a screen shot of the admin page) image not found
square-sync/square-sync.php Passed 13 tests
The main file in "Square Sync" v. 0.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
67 characters long description:
Loads Square Inventory into wordpress page or post using shortcode.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
There were no executable files found in this plugin358 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 196 | 155 | 343 |
CSS | 1 | 3 | 6 | 15 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
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 | 12 | |
▷ Named functions | 12 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/no_image.png | 33.58KB | 13.68KB | ▼ 59.27% |