Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▼0.26MB] [CPU: ▼19.59ms] Passed 4 tests
Analyzing server-side resources used by Print Science Designer
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 34.06 ▼14.16 |
Dashboard /wp-admin | 3.36 ▲0.01 | 49.10 ▼14.69 |
Posts /wp-admin/edit.php | 3.38 ▲0.02 | 47.36 ▼0.78 |
Add New Post /wp-admin/post-new.php | 4.72 ▼1.16 | 49.47 ▼48.73 |
Media Library /wp-admin/upload.php | 3.35 ▲0.12 | 43.46 ▲2.46 |
Server storage [IO: ▲0.43MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 73 new files
Database: 3 new tables, 10 new options
New tables |
---|
wp_api_info |
wp_saved_projects |
wp_cart_data |
New WordPress options |
---|
personalize_clear_date |
my_admin_errors |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
personalize_version |
recovery_mode_email_last_sent |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Print Science Designer
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 1,430 ▼1,331 | 3.35 ▼11.00 | 0.28 ▼1.78 | 8.45 ▼34.64 |
Dashboard /wp-admin | 1,262 ▼918 | 1.36 ▼4.26 | 13.56 ▼79.54 | 37.28 ▼5.40 |
Posts /wp-admin/edit.php | 1,107 ▼993 | 1.12 ▼0.84 | 7.93 ▼37.26 | 28.82 ▼4.89 |
Add New Post /wp-admin/post-new.php | 45 ▼1,483 | 0.42 ▼22.64 | 0.10 ▼690.78 | 10.81 ▼40.98 |
Media Library /wp-admin/upload.php | 1,399 ▼1 | 4.18 ▼0.01 | 109.70 ▼3.42 | 81.31 ▲31.85 |
Personalization API /wp-admin/personalize.php | 26 | 0.42 | 0.11 | 14.12 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- The uninstall procedure failed, leaving 3 tables in the database
- wp_cart_data
- wp_api_info
- wp_saved_projects
- This plugin does not fully uninstall, leaving 10 options in the database
- can_compress_scripts
- widget_recent-posts
- recovery_mode_email_last_sent
- personalize_version
- personalize_clear_date
- widget_theysaidso_widget
- my_admin_errors
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
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
Please fix the following items
- 10× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/print-science-designer/includes/shortcodes.php:2
- > PHP Warning
include_once(ABSPATHwp-admin/includes/plugin.php): failed to open stream: No such file or directory in wp-content/plugins/print-science-designer/personalize.php on line 15
- > PHP Notice
Undefined variable: wpdb in wp-content/plugins/print-science-designer/includes/admin.php on line 65
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/print-science-designer/includes/saved-projects.php:74
- > PHP Warning
include_once(): Failed opening 'ABSPATHwp-admin/includes/plugin.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/print-science-designer/personalize.php on line 15
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/print-science-designer/personalize.php on line 15
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/print-science-designer/personalize.php:20
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/print-science-designer/includes/woo.php:19
- > PHP Fatal error
Uncaught Error: Call to a member function get_row() on null in wp-content/plugins/print-science-designer/includes/admin.php:65
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/print-science-designer/includes/functions.php:105
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Please fix the following user-side errors
- > GET request to /wp-admin/personalize.php
- > Network (severe)
wp-admin/personalize.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: These screenshots lack descriptions #3, #4 in print-science-designer/assets to your readme.txt
- Plugin Name: You should set the name of your plugin on the first line (
=== print-science-designer ===
)
print-science-designer/personalize.php 85% from 13 tests
The main file in "Print Science Designer" v. 1.3.141 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Main file name: The principal plugin file should be the same as the plugin slug ("print-science-designer.php" instead of "personalize.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected8,724 lines of code in 32 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 10 | 426 | 1,059 | 5,728 |
PO File | 7 | 555 | 357 | 1,316 |
JavaScript | 10 | 76 | 34 | 1,200 |
CSS | 5 | 19 | 4 | 480 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 13.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 3.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 5 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 5 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 108 | |
▷ Named functions | 108 | 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
25 PNG files occupy 0.04MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/colorpicker_overlay.png | 10.11KB | 8.24KB | ▼ 18.50% |
images/help.png | 0.30KB | 0.32KB | 0.00% |
images/custom_hsb_b.png | 1.07KB | 0.82KB | ▼ 23.61% |
images/colorpicker_rgb_r.png | 1.04KB | 0.77KB | ▼ 26.17% |
images/select.png | 0.49KB | 0.33KB | ▼ 33.40% |