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.01MB] [CPU: ▼7.29ms] Passed 4 tests
This is a short check of server-side resources used by WerkPress Theme Customization Request
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.90 ▼4.78 |
Dashboard /wp-admin | 3.32 ▲0.01 | 42.84 ▼8.13 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 44.01 ▼0.47 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 81.89 ▼15.79 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.80 ▲7.02 |
Server storage [IO: ▲0.02MB] [DB: ▲0.33MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 8 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by WerkPress Theme Customization Request
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,041 ▲306 | 13.24 ▼1.14 | 1.73 ▼0.13 | 32.68 ▼10.18 |
Dashboard /wp-admin | 2,418 ▲230 | 4.99 ▲0.12 | 98.42 ▼17.77 | 101.54 ▲54.51 |
Posts /wp-admin/edit.php | 2,096 ▲7 | 2.03 ▲0.06 | 35.76 ▼4.47 | 32.40 ▼3.08 |
Add New Post /wp-admin/post-new.php | 1,530 ▲10 | 17.94 ▼5.34 | 589.75 ▼71.47 | 55.70 ▼9.07 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.33 ▲0.11 | 96.53 ▼1.24 | 39.41 ▼3.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.33MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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 items
- 1× 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/werkpress-theme-customization-request/dashboard_widgets.php:12
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 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
2 plugin tags: customization, theme customization
werkpress-theme-customization-request/dashboard_widgets.php 85% from 13 tests
"WerkPress Theme Customization Request" version 0.5.3b...'s primary PHP file adds more information about the plugin and serves as the entry point for WordPress
Please take the time to fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("werkpress-theme-customization-request.php" instead of "dashboard_widgets.php")
- Version: The version number should only use digits and periods (ex. "1.0.3" instead of "0.5.3b...")
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
No dangerous file extensions were detected350 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 26 | 14 | 162 |
CSS | 1 | 23 | 1 | 140 |
JavaScript | 1 | 12 | 3 | 48 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.02 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 2.00 |
Average method complexity | 1.20 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 1 | |
▷ Named functions | 1 | 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
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/arrow.png | 1.17KB | 0.41KB | ▼ 64.46% |
assets/admin-menu-icon.png | 2.24KB | 1.43KB | ▼ 35.90% |
assets/logo.png | 3.67KB | 2.52KB | ▼ 31.21% |