Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.06MB] [CPU: ▼1.71ms] Passed 4 tests
This is a short check of server-side resources used by Fullscreen Gallery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 47.70 ▲0.62 |
Dashboard /wp-admin | 3.37 ▲0.06 | 50.24 ▼2.34 |
Posts /wp-admin/edit.php | 3.48 ▲0.12 | 54.93 ▲0.60 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.06 | 96.25 ▼5.73 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 40.78 ▲0.82 |
Fullscreen Gallery /wp-admin/options-general.php?page=fullscreen-gallery | 3.25 | 40.24 |
Server storage [IO: ▲0.18MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 16 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
can_compress_scripts |
db_upgraded |
theysaidso_admin_options |
Browser metrics Passed 4 tests
Checking browser requirements for Fullscreen Gallery
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.72 ▲0.37 | 1.60 ▲0.00 | 40.07 ▼3.25 |
Dashboard /wp-admin | 2,202 ▲25 | 5.59 ▼0.09 | 90.74 ▼1.99 | 41.31 ▲0.33 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 2.02 ▲0.07 | 42.49 ▲7.40 | 35.59 ▼0.58 |
Add New Post /wp-admin/post-new.php | 1,529 ▼9 | 22.90 ▼0.43 | 646.89 ▼73.14 | 48.77 ▼10.90 |
Media Library /wp-admin/upload.php | 1,407 ▲7 | 4.19 ▲0.03 | 104.94 ▼11.70 | 47.97 ▲0.74 |
Fullscreen Gallery /wp-admin/options-general.php?page=fullscreen-gallery | 921 | 1.99 | 25.16 | 37.83 |
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
You still need to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
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
Even though everything seems fine, this is not an exhaustive test
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
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Fullscreen_Gallery' not found in wp-content/plugins/fullscreen-gallery/inc/template.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
3 plugin tags: gallery, fullscreen, post
fullscreen-gallery/fullscreen-gallery.php Passed 13 tests
The main PHP file in "Fullscreen Gallery" ver. 0.2 adds more information about the plugin and also serves as the entry point for this plugin
77 characters long description:
A simple plugin that adds a fullscreen endpoint to display the gallery images
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected2,778 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 612 | 1,121 | 2,236 |
PHP | 6 | 143 | 36 | 380 |
CSS | 2 | 5 | 0 | 162 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.31 |
Average class complexity | 9.80 |
▷ Minimum class complexity | 5.00 |
▷ Maximum class complexity | 18.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 1 | 20.00% |
▷ Concrete classes | 4 | 80.00% |
▷ Final classes | 0 | 0.00% |
Methods | 31 | |
▷ Static methods | 8 | 25.81% |
▷ Public methods | 23 | 74.19% |
▷ Protected methods | 3 | 9.68% |
▷ Private methods | 5 | 16.13% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 1 | 100.00% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
There were not PNG files found in your plugin