Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Please fix the following installer errors
- The plugin did not install without errors
- > Error in wp-content/plugins/printess-editor/printess.php+4832
Uncaught Error: Call to undefined function wp_get_active_network_plugins() in wp-content/plugins/printess-editor/printess.php:4832
Stack trace:
#0 wp-admin/includes/plugin.php(2318): include_once()
#1 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()
Server metrics [RAM: ▼0.01MB] [CPU: ▼5.43ms] Passed 4 tests
An overview of server-side resources used by Printess Editor
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 38.17 ▲3.03 |
Dashboard /wp-admin | 3.31 ▼0.04 | 44.83 ▼16.75 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 48.30 ▼1.83 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 91.45 ▼3.71 |
Media Library /wp-admin/upload.php | 3.24 ▲0.00 | 34.54 ▲0.57 |
Server storage [IO: ▲0.28MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Printess Editor
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,790 ▲28 | 14.57 ▲0.29 | 1.84 ▲0.25 | 44.78 ▲4.19 |
Dashboard /wp-admin | 2,198 ▲21 | 5.58 ▼0.05 | 94.26 ▼1.35 | 40.85 ▼3.13 |
Posts /wp-admin/edit.php | 2,100 ▼3 | 1.96 ▼0.01 | 38.47 ▼1.41 | 35.01 ▼1.85 |
Add New Post /wp-admin/post-new.php | 1,526 ▼10 | 23.23 ▲0.16 | 677.69 ▲33.83 | 66.56 ▲19.44 |
Media Library /wp-admin/upload.php | 1,400 ▼3 | 4.25 ▲0.10 | 93.78 ▼7.09 | 39.25 ▼5.08 |
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
- This plugin did not uninstall successfully, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 2× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function trailingslashit() in wp-content/plugins/printess-editor/printess.php:20
- > PHP Parse error
syntax error, unexpected '|', expecting ';' or '{' in wp-content/plugins/printess-editor/includes/printess-tools.php on line 16
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: Please delete some tags, you are using 15 tag instead of maximum 10
printess-editor/printess.php 85% from 13 tests
The main PHP script in "Printess Editor" version 1.4.4 is automatically included on every request by WordPress
The following require your attention:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("printess-editor.php" instead of "printess.php")
- Requires at least: Required version must match the one declared in readme.txt ("5.6" instead of "5.9")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Success! There were no dangerous files found in this plugin3,869 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 906 | 562 | 3,745 |
PO File | 1 | 52 | 54 | 124 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 18.50 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 34.00 |
Average method complexity | 3.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 15 | |
▷ Static methods | 3 | 20.00% |
▷ Public methods | 12 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 3 | 20.00% |
Functions | 106 | |
▷ Named functions | 100 | 94.34% |
▷ Anonymous functions | 6 | 5.66% |
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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.09MB with 0.06MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/icon.png | 2.91KB | 0.80KB | ▼ 72.35% |
images/base.png | 85.39KB | 35.03KB | ▼ 58.98% |