Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.07MB] [CPU: ▼0.02ms] Passed 4 tests
An overview of server-side resources used by swfObject Reloaded
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.53 ▲0.07 | 40.39 ▼0.01 |
Dashboard /wp-admin | 3.38 ▲0.07 | 45.53 ▼2.15 |
Posts /wp-admin/edit.php | 3.43 ▲0.07 | 48.34 ▼0.18 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 97.14 ▲5.82 |
Media Library /wp-admin/upload.php | 3.30 ▲0.07 | 37.49 ▲2.27 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 7 new files
Database: no new tables, 10 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
widget_recent-comments |
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
mc_altcontent_setting_name |
mc_setting_name |
mc_flashver_setting_name |
mc_iphone_setting_name |
Browser metrics Passed 4 tests
An overview of browser requirements for swfObject Reloaded
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,831 ▲96 | 13.23 ▼1.15 | 5.55 ▲3.81 | 38.59 ▼7.48 |
Dashboard /wp-admin | 2,209 ▲24 | 5.86 ▲0.99 | 94.95 ▼12.27 | 37.18 ▼7.10 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.01 ▼0.03 | 40.43 ▲5.10 | 36.13 ▲3.19 |
Add New Post /wp-admin/post-new.php | 1,547 ▲5 | 18.26 ▲0.08 | 592.07 ▼46.66 | 59.90 ▼18.61 |
Media Library /wp-admin/upload.php | 1,388 ▼3 | 4.13 ▼0.13 | 96.12 ▼7.29 | 41.66 ▼0.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- Zombie WordPress options were found after uninstall: 10 options
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- mc_setting_name
- mc_flashver_setting_name
- widget_recent-comments
- widget_recent-posts
- mc_iphone_setting_name
- can_compress_scripts
- mc_altcontent_setting_name
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)
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 applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Almost there! Just fix the following items
- 3× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/swfobject-reloaded/wp_swf_shortcode.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/swfobject-reloaded/wp_swf_media_options.php:33
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/swfobject-reloaded/wp_swf_object.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 87% 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 to be fixed:
- Screenshots: These screenshots do not have images: #1 (This is the media upload screen showing the new fields added by **swfObject Reloaded** for Width, Height and), #2 (This is the swfObject's settings added to the Settings->Media menu.)
- Tags: Too many tags (11 tag instead of maximum 10); only the first 5 tags are used in your directory listing
swfobject-reloaded/wp_swf_object.php 85% from 13 tests
The main file in "swfObject Reloaded" v. 1.6 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:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("swfobject-reloaded.php" instead of "wp_swf_object.php")
- Description: The description should be shorter than 140 characters (currently 365 characters long)
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
Everything looks great! No dangerous files found in this plugin307 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 106 | 79 | 307 |
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.41 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 19 | |
▷ Named functions | 19 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
2 PNG files occupy 0.14MB with 0.09MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 80.81KB | 27.65KB | ▼ 65.79% |
screenshot-1.png | 57.61KB | 19.61KB | ▼ 65.96% |