Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼6.01ms] Passed 4 tests
Analyzing server-side resources used by PrintshopCreator API-Connect
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 42.94 ▼1.26 |
Dashboard /wp-admin | 3.35 ▲0.00 | 42.21 ▼13.62 |
Posts /wp-admin/edit.php | 3.40 ▲0.04 | 46.21 ▼4.15 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 87.25 ▼5.01 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 35.26 ▲1.68 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for PrintshopCreator API-Connect
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,841 ▲95 | 14.83 ▲0.43 | 1.88 ▼0.05 | 39.06 ▼8.38 |
Dashboard /wp-admin | 2,222 ▲34 | 5.85 ▼0.01 | 107.10 ▲2.07 | 41.96 ▲3.49 |
Posts /wp-admin/edit.php | 2,105 ▲16 | 2.05 ▲0.06 | 39.27 ▲3.95 | 35.62 ▲1.62 |
Add New Post /wp-admin/post-new.php | 1,556 ▲28 | 18.16 ▼0.07 | 604.35 ▲17.87 | 59.07 ▲4.87 |
Media Library /wp-admin/upload.php | 1,401 ▲10 | 4.29 ▲0.03 | 100.18 ▲1.00 | 42.39 ▼2.18 |
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
You still need to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 2× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/printshopcreator-api-connect/shortcodes.php:71
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/printshopcreator-api-connect/shortcodes.php:71
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
7 plugin tags: kalkulation, web2print, shop, printshopcreator, printshop...
printshopcreator-api-connect/api-settings.php 85% from 13 tests
The principal PHP file in "PrintshopCreator API-Connect" v. 1.0.2 is loaded by WordPress automatically on each request
It is important to fix the following:
- Description: The description should be shorter than 140 characters (currently 249 characters long)
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("printshopcreator-api-connect.php" instead of "api-settings.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Success! There were no dangerous files found in this plugin600 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 27 | 15 | 335 |
JavaScript | 1 | 26 | 3 | 265 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
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 | 5 | |
▷ Named functions | 5 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
1 compressed PNG file occupies 0.00MB
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/printshop-creator.png | 3.66KB | 3.66KB | 0.00% |