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
The following installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/flickr-media-scanner/includes/class_scanner.php+5
Methods with the same name as their class will not be constructors in a future version of PHP; FMS_Scanner has a deprecated constructor
Server metrics [RAM: ▼1.92MB] [CPU: ▼50.23ms] Passed 4 tests
Analyzing server-side resources used by Flickr Media Scanner
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.07 ▼1.39 | 4.70 ▼40.87 |
Dashboard /wp-admin | 2.09 ▼1.21 | 6.28 ▼39.57 |
Posts /wp-admin/edit.php | 2.09 ▼1.27 | 6.11 ▼37.73 |
Add New Post /wp-admin/post-new.php | 2.09 ▼3.80 | 5.63 ▼82.73 |
Media Library /wp-admin/upload.php | 2.09 ▼1.14 | 6.32 ▼28.92 |
Flickr Media Scanner /wp-admin/options-general.php?page=flickr_media_scanner | 2.09 | 5.83 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 6 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for Flickr Media Scanner
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,808 ▲73 | 13.61 ▼0.75 | 1.73 ▼0.41 | 41.12 ▼3.71 |
Dashboard /wp-admin | 2,211 ▲23 | 5.82 ▲0.90 | 96.30 ▼12.56 | 41.13 ▼0.92 |
Posts /wp-admin/edit.php | 2,097 ▲8 | 2.01 ▲0.02 | 37.81 ▲0.51 | 34.44 ▲1.72 |
Add New Post /wp-admin/post-new.php | 1,521 ▼21 | 17.51 ▼0.69 | 670.94 ▲39.49 | 52.05 ▼5.70 |
Media Library /wp-admin/upload.php | 1,396 ▲8 | 4.19 ▼0.06 | 97.15 ▼5.49 | 41.43 ▼3.82 |
Flickr Media Scanner /wp-admin/options-general.php?page=flickr_media_scanner | 833 | 2.07 | 24.72 | 26.37 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- The plugin did not uninstall gracefully
- > Deprecated in wp-content/plugins/flickr-media-scanner/includes/class_scanner.php+5
Methods with the same name as their class will not be constructors in a future version of PHP; FMS_Scanner has a deprecated constructor
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Almost there, just fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=flickr_media_scanner
- > Deprecated in wp-content/plugins/flickr-media-scanner/includes/class_scanner.php+5
Methods with the same name as their class will not be constructors in a future version of PHP; FMS_Scanner has a deprecated constructor
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
Please fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/flickr-media-scanner/flickr-media-scanner.php:28
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
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 an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
3 plugin tags: photos, flickr, images
flickr-media-scanner/flickr-media-scanner.php Passed 13 tests
Analyzing the main PHP file in "Flickr Media Scanner" version 1.0.4
60 characters long description:
Finds all Flickr photos used in posts that have been removed
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected215 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 49 | 8 | 148 |
JavaScript | 1 | 6 | 0 | 37 |
CSS | 1 | 6 | 0 | 30 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 11.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 11.00 |
Average method complexity | 3.50 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 8 | |
▷ Static methods | 1 | 12.50% |
▷ Public methods | 8 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.15MB with 0.10MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/screenshot-1.png | 152.78KB | 50.03KB | ▼ 67.25% |