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 gracefully, with no errors
Server metrics [RAM: ▲0.05MB] [CPU: ▼9.31ms] Passed 4 tests
This is a short check of server-side resources used by Syncee for Suppliers
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 35.27 ▼3.94 |
Dashboard /wp-admin | 3.35 ▲0.01 | 47.27 ▼16.68 |
Posts /wp-admin/edit.php | 3.47 ▲0.11 | 50.73 ▲4.04 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 91.57 ▼14.43 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 32.20 ▼2.18 |
Server storage [IO: ▲0.56MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 23 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Syncee for Suppliers
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,958 ▲212 | 13.91 ▼0.48 | 9.89 ▲8.28 | 32.17 ▼6.41 |
Dashboard /wp-admin | 2,230 ▲45 | 5.06 ▲0.16 | 103.77 ▲0.70 | 40.81 ▼2.64 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 2.11 ▲0.07 | 40.60 ▼0.77 | 42.25 ▲7.12 |
Add New Post /wp-admin/post-new.php | 1,376 ▼161 | 17.45 ▼5.37 | 535.78 ▼59.28 | 40.77 ▼18.45 |
Media Library /wp-admin/upload.php | 1,406 ▲21 | 4.36 ▲0.17 | 113.62 ▲16.57 | 43.81 ▲1.53 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 50% 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)
Even though no errors were found, 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 fix the following
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/syncee-for-suppliers/View/index.php
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/syncee-for-suppliers/SynceeSupplier.php:29
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/syncee-for-suppliers/includes/RestForSynceeSupplier.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Attributes that require attention:
- Contributors: Plugin contributors not specified
syncee-for-suppliers/plugin.php 85% from 13 tests
The principal PHP file in "Syncee for Suppliers" v. 1.0.17 is loaded by WordPress automatically on each request
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 148 characters long)
- Main file name: Name the main plugin file the same as the plugin slug ("syncee-for-suppliers.php" instead of "plugin.php")
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
Good job! No executable or dangerous file extensions detected757 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 111 | 92 | 534 |
JavaScript | 2 | 66 | 12 | 211 |
SVG | 1 | 1 | 0 | 11 |
CSS | 1 | 0 | 6 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 9.00 |
▷ Minimum class complexity | 6.00 |
▷ Maximum class complexity | 12.00 |
Average method complexity | 1.64 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 9 | 26.47% |
▷ Public methods | 31 | 91.18% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 8.82% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 5 | |
▷ Global constants | 5 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
13 PNG files occupy 0.34MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-3.png | 182.77KB | 77.81KB | ▼ 57.43% |
(invalid) assets/screenshot-2.png | 0.00KB | 0.00KB | 0.00% |
img/syncee_icon_blue.png | 0.65KB | 0.52KB | ▼ 19.34% |
img/syncee_logo.png | 2.31KB | 1.95KB | ▼ 15.53% |
img/syncee_minimal_logo.png | 4.82KB | 3.98KB | ▼ 17.40% |