Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Please fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method WedgePrintInit::on_activate() should not be called statically
Server metrics [RAM: ▲0.04MB] [CPU: ▼5.01ms] Passed 4 tests
Analyzing server-side resources used by WedgePrint
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.05 | 37.98 ▲1.55 |
Dashboard /wp-admin | 3.36 ▲0.01 | 48.09 ▼15.03 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 44.51 ▲0.67 |
Add New Post /wp-admin/post-new.php | 5.94 ▲0.05 | 80.79 ▼5.63 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 33.75 ▼0.03 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
The plugin installed successfully
Filesystem: 9 new files
Database: 1 new table, 16 new options
New tables |
---|
wp_wedgeprint_wedges |
New WordPress options |
---|
widget_theysaidso_widget |
wedgeprint_interval |
wedgeprint_closeid |
theysaidso_admin_options |
wedgeprint_cookie_name |
can_compress_scripts |
wedgeprint_time |
wedgeprint_db_version |
wedgeprint_version |
wedgeprint_source |
... |
Browser metrics Passed 4 tests
WedgePrint: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲47 | 14.53 ▼0.03 | 1.79 ▲0.24 | 43.17 ▲1.60 |
Dashboard /wp-admin | 2,202 ▲22 | 5.56 ▼0.09 | 95.08 ▲8.06 | 41.98 ▼0.41 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.08 | 33.27 ▼4.11 | 35.67 ▲1.76 |
Add New Post /wp-admin/post-new.php | 1,531 ▲3 | 23.14 ▼0.09 | 658.37 ▼17.19 | 49.55 ▲0.12 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.17 ▼0.05 | 110.32 ▲9.85 | 47.36 ▼3.59 |
WedgePrint Manager /wp-admin/wedgeprint.php | 26 | 0.42 | 0.09 | 12.68 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-includes/class-wp-hook.php+310
Non-static method WedgePrintInit::on_deactivate() should not be called statically
- Zombie WordPress options detected upon uninstall: 7 options
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- wedgeprint_db_version
- theysaidso_admin_options
Smoke tests 50% 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)
The smoke test was a success, however most plugin functionality was not tested
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following
- 3× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/wedgeprint/common/wedgeprint_inner.php
- > /wp-content/plugins/wedgeprint/wedgeprint_admin.php
- > /wp-content/plugins/wedgeprint/wedgeprint.php
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/wedgeprint.php
- > Network (severe)
wp-admin/wedgeprint.php - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 97% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Attributes that require attention:
- Screenshots: Screenshot #1 (Overview of the new 'WedgePrint Manager', `/tags/0.2.0/screenshot-1.png`) image not found
wedgeprint/wedgeprint.php Passed 13 tests
The main PHP file in "WedgePrint" ver. 0.2.0 adds more information about the plugin and also serves as the entry point for this plugin
137 characters long description:
WedgePrint plugin for WordPress is an easy way to show your readers short-time visual screenshots while loading your requested blog page.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin610 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 5 | 134 | 193 | 563 |
HTML | 2 | 2 | 0 | 47 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.32 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 4.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 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
1 PNG file occupies 0.05MB with 0.03MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 51.71KB | 21.03KB | ▼ 59.33% |