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
Please fix the following installer errors
- The plugin did not install without errors
- > Deprecated in wp-content/plugins/recent-photos-widget/recent_photos_widget.php+14
Methods with the same name as their class will not be constructors in a future version of PHP; wp_photo_widget_plugin has a deprecated constructor
Server metrics [RAM: ▼1.90MB] [CPU: ▼53.19ms] Passed 4 tests
Analyzing server-side resources used by Recent photos widget
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.09 ▼1.38 | 4.90 ▼32.86 |
Dashboard /wp-admin | 2.11 ▼1.20 | 6.32 ▼43.75 |
Posts /wp-admin/edit.php | 2.11 ▼1.25 | 6.59 ▼40.10 |
Add New Post /wp-admin/post-new.php | 2.11 ▼3.78 | 5.67 ▼96.04 |
Media Library /wp-admin/upload.php | 2.11 ▼1.12 | 6.01 ▼28.29 |
Server storage [IO: ▲0.01MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
widget_posts_photos_widget |
can_compress_scripts |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Recent photos widget
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▲54 | 14.47 ▲0.09 | 1.59 ▲0.07 | 40.25 ▲1.19 |
Dashboard /wp-admin | 2,206 ▲17 | 5.79 ▲0.90 | 101.04 ▼3.49 | 39.01 ▼9.08 |
Posts /wp-admin/edit.php | 2,086 ▼3 | 2.02 ▼0.12 | 36.13 ▲1.04 | 31.38 ▼5.44 |
Add New Post /wp-admin/post-new.php | 1,534 ▼7 | 23.32 ▲0.04 | 679.24 ▲38.70 | 48.19 ▼9.00 |
Media Library /wp-admin/upload.php | 1,388 ▼0 | 4.18 ▼0.07 | 95.49 ▼0.44 | 44.78 ▲3.59 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Deprecated in wp-content/plugins/recent-photos-widget/recent_photos_widget.php+14
Methods with the same name as their class will not be constructors in a future version of PHP; wp_photo_widget_plugin has a deprecated constructor
- This plugin does not fully uninstall, leaving 7 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- widget_posts_photos_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/recent-photos-widget/recent_photos_widget.php:14
- > 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)
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
2 plugin tags: photos, widget
recent-photos-widget/recent_photos_widget.php 92% from 13 tests
The principal PHP file in "Recent photos widget" v. 1.3 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("recent-photos-widget.php" instead of "recent_photos_widget.php")
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
Success! There were no dangerous files found in this plugin205 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 43 | 14 | 102 |
JavaScript | 1 | 15 | 4 | 63 |
CSS | 1 | 5 | 7 | 40 |
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.10 |
Average class complexity | 8.00 |
▷ Minimum class complexity | 8.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 2.75 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.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 | 4 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 4 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
No PNG files were detected