Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.09MB] [CPU: ▼4.89ms] Passed 4 tests
Analyzing server-side resources used by WP Strip Image Metadata
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.09 | 37.01 ▼3.00 |
Dashboard /wp-admin | 3.40 ▲0.09 | 47.88 ▼0.17 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 52.87 ▲4.07 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 86.78 ▼16.19 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.34 ▼0.19 |
Strip Image Metadata /wp-admin/options-general.php?page=wp_strip_image_metadata | 3.28 | 32.28 |
Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
No storage issues were detected
Filesystem: 2 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by WP Strip Image Metadata
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲75 | 13.35 ▼1.26 | 4.14 ▲2.32 | 40.61 ▼8.89 |
Dashboard /wp-admin | 2,216 ▲28 | 4.85 ▼1.00 | 109.40 ▲6.93 | 41.97 ▲0.30 |
Posts /wp-admin/edit.php | 2,099 ▲10 | 2.00 ▲0.02 | 39.72 ▲0.59 | 39.24 ▼0.01 |
Add New Post /wp-admin/post-new.php | 1,544 ▲11 | 23.43 ▲0.19 | 634.58 ▲7.87 | 64.16 ▲3.05 |
Media Library /wp-admin/upload.php | 1,401 ▲10 | 4.22 ▼0.01 | 95.23 ▼5.99 | 45.14 ▲1.96 |
Strip Image Metadata /wp-admin/options-general.php?page=wp_strip_image_metadata | 878 | 2.07 | 25.02 | 29.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP Passed 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
Looking good! No server-side errors or output on direct access of PHP files
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)
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
5 plugin tags: exif, image, metadata, privacy, strip
wp-strip-image-metadata/wp-strip-image-metadata.php Passed 13 tests
The main PHP script in "WP Strip Image Metadata" version 1.0 is automatically included on every request by WordPress
76 characters long description:
Strip image metadata on upload or via bulk action, and view image EXIF data.
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 plugin462 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 95 | 206 | 462 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.47 |
Average class complexity | 65.00 |
▷ Minimum class complexity | 65.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 3.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 24.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 19 | |
▷ Static methods | 19 | 100.00% |
▷ Public methods | 19 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 8 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 8 | 100.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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin