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 successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.00MB] [CPU: ▼7.66ms] Passed 4 tests
Server-side resources used by Sky Remove Attached Files And Featured Images Automatically
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 41.49 ▲2.33 |
Dashboard /wp-admin | 3.31 ▲0.01 | 47.19 ▼6.62 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 46.50 ▼3.72 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 82.78 ▼22.10 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 37.12 ▲1.80 |
Server storage [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Sky Remove Attached Files And Featured Images Automatically
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,814 ▲53 | 14.28 ▼0.25 | 1.97 ▼0.12 | 44.53 ▼0.56 |
Dashboard /wp-admin | 2,195 ▲21 | 5.54 ▼0.12 | 86.93 ▼23.82 | 39.46 ▼14.65 |
Posts /wp-admin/edit.php | 2,100 ▼0 | 1.96 ▼0.07 | 36.45 ▼2.04 | 34.40 ▼4.23 |
Add New Post /wp-admin/post-new.php | 1,526 ▼8 | 23.74 ▲0.70 | 639.56 ▼73.88 | 50.12 ▼1.87 |
Media Library /wp-admin/upload.php | 1,400 ▲3 | 4.19 ▲0.02 | 94.21 ▼8.20 | 44.22 ▲0.57 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
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 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
Please fix the following
- 1× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/sky-remove-attached-files-and-featured-images-automatically/sky-remove-attached-files-and-featured-images-automatically.php:27
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
7 plugin tags: images, post, auto, delete media, posts...
sky-remove-attached-files-and-featured-images-automatically/sky-remove-attached-files-and-featured-images-automatically.php Passed 13 tests
This is the main PHP file of "Sky Remove Attached Files And Featured Images Automatically" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
105 characters long description:
Automatically eliminate attached media from posts, metabox and featured images uploaded via Media button.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
There were no executable files found in this plugin25 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 25 | 25 | 25 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.67 |
▷ 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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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
There were not PNG files found in your plugin