Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
These installer errors require your attention
- The plugin did not install without errors
- > Notice in wp-content/plugins/simple-photo-feed/includes/class-simple-photo-feed.php+81
Undefined index: token
Server metrics [RAM: ▲0.03MB] [CPU: ▼5.20ms] Passed 4 tests
A check of server-side resources used by Simple Photo Feed for Instagram
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 37.25 ▼5.99 |
Dashboard /wp-admin | 3.33 ▲0.03 | 45.77 ▼3.93 |
Posts /wp-admin/edit.php | 3.38 ▲0.03 | 46.02 ▲0.02 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 80.57 ▼10.90 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 34.15 ▲4.58 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
spf_main_settings |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
db_upgraded |
Browser metrics Passed 4 tests
An overview of browser requirements for Simple Photo Feed for Instagram
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,821 ▲86 | 14.80 ▲0.44 | 1.76 ▼0.08 | 39.62 ▼9.05 |
Dashboard /wp-admin | 2,225 ▲34 | 5.81 ▲0.91 | 99.54 ▼10.40 | 38.62 ▼7.95 |
Posts /wp-admin/edit.php | 2,108 ▲19 | 2.01 ▼0.17 | 39.05 ▲3.91 | 35.04 ▼0.68 |
Add New Post /wp-admin/post-new.php | 1,540 ▲26 | 18.35 ▲0.75 | 596.44 ▼83.66 | 54.01 ▼3.19 |
Media Library /wp-admin/upload.php | 1,410 ▲19 | 4.28 ▲0.12 | 99.01 ▼1.09 | 42.50 ▼0.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
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
Good news, no errors were detected
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 take a closer look at the following
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/simple-photo-feed/public/partials/simple-photo-feed-public-display.php:14
- > PHP Fatal error
Uncaught Error: Class 'Simple_Photo_Feed_Admin' not found in wp-content/plugins/simple-photo-feed/admin/partials/simple-photo-feed-admin-display.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 issues were 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: social, photo gallery, embed, feed, instagram
simple-photo-feed/simple-photo-feed.php Passed 13 tests
The primary PHP file in "Simple Photo Feed for Instagram" version 1.0.2 is used by WordPress to initiate all plugin functionality
137 characters long description:
Simple Photo Feed for Instagram provides an easy way to connect to your Instagram account and display your photos in your WordPress site.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Everything looks great! No dangerous files found in this plugin946 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 13 | 211 | 636 | 673 |
CSS | 2 | 36 | 3 | 205 |
JavaScript | 1 | 5 | 0 | 68 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.12 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 9.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 43 | |
▷ Static methods | 2 | 4.65% |
▷ Public methods | 38 | 88.37% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 11.63% |
Functions | 4 | |
▷ Named functions | 4 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
No PNG files were detected