Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.13MB] [CPU: ▼2.80ms] Passed 4 tests
An overview of server-side resources used by Photo Feed
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.60 ▲0.13 | 37.84 ▼2.88 |
Dashboard /wp-admin | 3.44 ▲0.13 | 48.74 ▼4.64 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 49.78 ▲1.41 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 92.27 ▼5.10 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 36.55 ▲2.35 |
Photo Feed /wp-admin/options-general.php?page=photo-feed | 3.34 | 33.67 |
Server storage [IO: ▲0.46MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 28 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_photofeed_widget |
Browser metrics Passed 4 tests
Photo Feed: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.24 ▼0.48 | 1.63 ▼0.07 | 37.88 ▼6.07 |
Dashboard /wp-admin | 2,199 ▲21 | 5.61 ▼0.15 | 80.03 ▼17.15 | 38.94 ▼2.68 |
Posts /wp-admin/edit.php | 2,101 ▲1 | 1.99 ▲0.00 | 38.33 ▲3.44 | 36.58 ▼0.50 |
Add New Post /wp-admin/post-new.php | 1,547 ▲14 | 23.16 ▲0.11 | 599.63 ▼91.11 | 53.57 ▼8.44 |
Media Library /wp-admin/upload.php | 1,401 ▼2 | 4.22 ▲0.08 | 95.72 ▼3.73 | 40.95 ▼4.10 |
Photo Feed /wp-admin/options-general.php?page=photo-feed | 839 | 2.15 | 27.83 | 30.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_recent-posts
- widget_photofeed_widget
- theysaidso_admin_options
- widget_theysaidso_widget
- widget_recent-comments
- db_upgraded
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/photo-feed/photo-feed.php
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/photo-feed/app/views/new-account.php:9
- > PHP Warning
Use of undefined constant PHOTOFEED_URL - assumed 'PHOTOFEED_URL' (this will throw an Error in a future version of PHP) in wp-content/plugins/photo-feed/app/views/new-account.php on line 9
- > 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
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
6 plugin tags: instagram gallery, instagram widget, instagram photos, instagram plugin, wordpress instagram plugin...
photo-feed/photo-feed.php Passed 13 tests
This is the main PHP file of "Photo Feed" version 2.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
73 characters long description:
A simple and lightweight plugin to display Instagram Feed within website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Everything looks great! No dangerous files found in this plugin1,978 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 180 | 150 | 1,517 |
CSS | 4 | 18 | 19 | 444 |
SVG | 1 | 4 | 0 | 16 |
JavaScript | 1 | 1 | 12 | 1 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 23.00 |
Average method complexity | 3.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 17 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 94.12% |
▷ Protected methods | 1 | 5.88% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 15 | 75.00% |
▷ Anonymous functions | 5 | 25.00% |
Constants | 3 | |
▷ Global constants | 3 | 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
1 PNG file occupies 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/media/instagram-icon.png | 10.83KB | 4.16KB | ▼ 61.60% |