Benchmarks
Plugin footprint 65% 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.06MB] [CPU: ▼6.22ms] Passed 4 tests
An overview of server-side resources used by Presswell Art Direction
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 38.41 ▼4.23 |
Dashboard /wp-admin | 3.39 ▲0.05 | 54.59 ▼7.79 |
Posts /wp-admin/edit.php | 3.50 ▲0.15 | 49.17 ▲1.96 |
Add New Post /wp-admin/post-new.php | 5.97 ▲0.08 | 90.26 ▼10.29 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 32.00 ▼2.55 |
Art Direction /wp-admin/options-general.php?page=presswell-art-direction-settings | 3.36 | 35.23 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 11 new files
Database: 1 new table, 9 new options
New tables |
---|
wp_pwad_image_queue |
New WordPress options |
---|
widget_theysaidso_widget |
pwad_conflicts |
pwad_settings |
db_upgraded |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
wp_pwad_image_queue_db_version |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Presswell Art Direction
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,946 ▲200 | 14.51 ▲0.23 | 1.74 ▲0.06 | 43.73 ▼1.72 |
Dashboard /wp-admin | 2,352 ▲181 | 6.25 ▲0.57 | 112.66 ▲14.62 | 41.20 ▼4.68 |
Posts /wp-admin/edit.php | 2,277 ▲177 | 3.42 ▲1.40 | 52.46 ▲15.32 | 31.26 ▼1.73 |
Add New Post /wp-admin/post-new.php | 1,545 ▲17 | 23.24 ▲0.17 | 612.73 ▼54.11 | 36.40 ▼21.70 |
Media Library /wp-admin/upload.php | 1,420 ▲20 | 4.27 ▲0.08 | 82.45 ▼14.84 | 42.62 ▼2.41 |
Art Direction /wp-admin/options-general.php?page=presswell-art-direction-settings | 1,858 | 3.90 | 59.86 | 38.24 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- Zombie tables were found after uninstall: 1 table
- wp_pwad_image_queue
- This plugin does not fully uninstall, leaving 9 options in the database
- wp_pwad_image_queue_db_version
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- pwad_conflicts
- pwad_settings
Smoke tests 75% 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)
Good news, no errors were detected
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
- 2× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/presswell-art-direction/includes/admin/templates/settings.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function __() in wp-content/plugins/presswell-art-direction/includes/admin/templates/fields/sizes.php:6
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 88% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
These attributes need your attention:
- Tags: There are too many tags (13 tag instead of maximum 10)
- Screenshots: Please describe screenshot #4 in presswell-art-direction/assets to your readme.txt
presswell-art-direction/presswell-art-direction.php Passed 13 tests
The main PHP file in "Presswell Art Direction" ver. 1.1.5 adds more information about the plugin and also serves as the entry point for this plugin
70 characters long description:
Control how image thumbnail sizes are defined, cropped, and generated.
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
There were no executable files found in this plugin1,549 lines of code in 9 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 532 | 101 | 1,546 |
JavaScript | 2 | 0 | 0 | 2 |
CSS | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 53.25 |
▷ Minimum class complexity | 17.00 |
▷ Maximum class complexity | 122.00 |
Average method complexity | 3.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 17.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 80 | |
▷ Static methods | 4 | 5.00% |
▷ Public methods | 80 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
No PNG files were detected