Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.16MB] [CPU: ▼6.05ms] Passed 4 tests
This is a short check of server-side resources used by Photo roll
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 36.82 ▼6.86 |
Dashboard /wp-admin | 3.45 ▲0.15 | 46.17 ▼6.15 |
Posts /wp-admin/edit.php | 3.57 ▲0.21 | 54.19 ▲6.04 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.17 | 81.53 ▼10.10 |
Media Library /wp-admin/upload.php | 3.38 ▲0.15 | 34.99 ▼1.08 |
Server storage [IO: ▲0.05MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
db_upgraded |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Photo roll
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,930 ▲195 | 14.07 ▼0.32 | 4.88 ▲3.18 | 37.80 ▼7.30 |
Dashboard /wp-admin | 2,228 ▲43 | 4.85 ▼1.05 | 111.91 ▼16.16 | 42.70 ▼9.91 |
Posts /wp-admin/edit.php | 2,111 ▲22 | 1.98 ▼0.03 | 46.72 ▲10.16 | 37.80 ▲2.97 |
Add New Post /wp-admin/post-new.php | 1,542 ▲22 | 18.21 ▼4.97 | 638.59 ▼35.83 | 59.90 ▲5.42 |
Media Library /wp-admin/upload.php | 1,407 ▲19 | 4.22 ▲0.04 | 98.76 ▼18.10 | 40.28 ▼9.13 |
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
It is recommended to fix the following
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 50% 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 0% 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
Please fix the following items
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/photo-roll/public/partials/instantgram-public-display.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'PRI_Instantgram_Public' not found in wp-content/plugins/photo-roll/admin/partials/instantgram-admin-display.php:13
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
6 plugin tags: insta, widget, feed, importer, gallery...
photo-roll/instantgram.php 85% from 13 tests
The primary PHP file in "Photo roll" version 1.0.0 is used by WordPress to initiate all plugin functionality
You should first fix the following items:
- Text Domain: The text domain must be the same as the plugin slug, although optional since WordPress version 4.6
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("photo-roll.php" instead of "instantgram.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
No dangerous file extensions were detected566 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 236 | 698 | 533 |
CSS | 1 | 4 | 0 | 17 |
SVG | 1 | 0 | 0 | 10 |
JavaScript | 2 | 4 | 54 | 6 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 5.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 1.88 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 7 | 14.58% |
▷ Public methods | 38 | 79.17% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 10 | 20.83% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
No PNG files were detected