Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.05MB] [CPU: ▼2.46ms] Passed 4 tests
An overview of server-side resources used by WXY Tools Media Replace
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.51 ▲0.04 | 43.95 ▲3.33 |
Dashboard /wp-admin | 3.36 ▲0.06 | 45.65 ▼1.80 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 50.23 ▲2.84 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.07 | 92.93 ▼11.96 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 35.35 ▲1.10 |
WXY Tools Media Replace /wp-admin/options-general.php?page=wxy_tools_media_replace_settings_page | 3.26 | 36.63 |
Server storage [IO: ▲4.34MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
WXY Tools Media Replace: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲39 | 14.47 ▲0.22 | 1.69 ▼0.45 | 43.44 ▲0.11 |
Dashboard /wp-admin | 2,216 ▲28 | 4.85 ▼1.02 | 113.04 ▼2.89 | 39.90 ▼9.14 |
Posts /wp-admin/edit.php | 2,102 ▲13 | 2.06 ▲0.05 | 40.52 ▲4.12 | 36.27 ▲0.85 |
Add New Post /wp-admin/post-new.php | 6,208 ▲4,680 | 24.23 ▲6.06 | 912.69 ▲264.69 | 69.97 ▲7.11 |
Media Library /wp-admin/upload.php | 1,424 ▲36 | 4.28 ▲0.07 | 101.51 ▼5.14 | 49.08 ▲4.45 |
WXY Tools Media Replace /wp-admin/options-general.php?page=wxy_tools_media_replace_settings_page | 1,082 | 5.79 | 168.11 | 57.40 |
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
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
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)
Even though no errors were found, this is by no means 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
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_admin() in wp-content/plugins/wxy-tools-media-replace/wxy-tools-media-replace.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/wxy-tools-media-replace/options/wxy-tools-media-replace-options.php:10
- > 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 90% from 29 tests
readme.txt 81% from 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
These attributes need to be fixed:
- Plugin Name: Please specify the plugin name on the first line (
=== wxy-tools-media-replace ===
) - Screenshots: These screenshots have no corresponding images in /assets: #1 (WXY Tools Media Replace - Post Edit Meta Box), #2 (WXY Tools Media Replace - Page Edit Meta Box), #3 (WXY Tools Media Replace - Media Library Status Bar), #4 (WXY Tools Media Replace - Settings Area)
- Donate link: Invalid URI found ("")
wxy-tools-media-replace/wxy-tools-media-replace.php Passed 13 tests
The entry point to "WXY Tools Media Replace" version 1.0.0 is a PHP file that has certain tags in its header comment area
129 characters long description:
Upload files to the media tab and if there is a file already uploaded with that filename, the new file will replacde the old one.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected496 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 159 | 157 | 419 |
JavaScript | 1 | 27 | 27 | 77 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
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 | 14 | |
▷ Named functions | 14 | 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
There were not PNG files found in your plugin