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.05MB] [CPU: ▼142.48ms] Passed 4 tests
Server-side resources used by WP Slim Gallery
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.89 ▲0.06 | 34.40 ▼1.88 |
Dashboard /wp-admin | 3.12 ▲0.06 | 39.10 ▼8.59 |
Posts /wp-admin/edit.php | 3.17 ▲0.06 | 43.25 ▼2.22 |
Add New Post /wp-admin/post-new.php | 5.48 ▲0.05 | 92.06 ▼553.14 |
Media Library /wp-admin/upload.php | 3.06 ▲0.05 | 36.13 ▼5.96 |
Add New /wp-admin/post-new.php?post_type=slim_post | 3.12 | 51.90 |
Category /wp-admin/edit-tags.php?taxonomy=slimgl_post_cat&post_type=slim_post | 3.05 | 31.79 |
WP Slim Gallery /wp-admin/edit.php?post_type=slim_post | 3.10 | 35.42 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 10 new files
Database: no new tables, 1 new option
New WordPress options |
---|
widget_wpslimgl |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Slim Gallery
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,128 ▲532 | 16.04 ▲0.49 | 19.68 ▲11.27 | 44.98 ▼0.62 |
Dashboard /wp-admin | 3,007 ▲76 | 5.97 ▼0.22 | 144.54 ▼9.30 | 114.37 ▲1.60 |
Posts /wp-admin/edit.php | 2,779 ▲40 | 2.72 ▲0.00 | 65.12 ▼1.40 | 85.98 ▼1.73 |
Add New Post /wp-admin/post-new.php | 1,698 ▲28 | 18.76 ▼0.40 | 400.68 ▼10.28 | 106.71 ▼1.76 |
Media Library /wp-admin/upload.php | 1,847 ▲40 | 5.04 ▼0.04 | 153.17 ▲2.73 | 113.26 ▼5.56 |
Add New /wp-admin/post-new.php?post_type=slim_post | 2,348 | 4.56 | 104.42 | 83.30 |
Category /wp-admin/edit-tags.php?taxonomy=slimgl_post_cat&post_type=slim_post | 1,791 | 2.40 | 58.25 | 77.29 |
WP Slim Gallery /wp-admin/edit.php?post_type=slim_post | 1,455 | 2.64 | 61.60 | 72.07 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
You still need to fix the following
- This plugin did not uninstall successfully, leaving 1 option in the database
- widget_wpslimgl
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though everything seems fine, this is not 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
Please take a closer look at the following
- 2× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-slim-gallery/widget.php:3
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-slim-gallery/widget.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
These attributes need your attention:
- Contributors: Plugin contributors field is missing
- Screenshots: Add a description for screenshot #3 in wp-slim-gallery/assets to your readme.txt
wp-slim-gallery/wpslimgallery.php 85% from 13 tests
"WP Slim Gallery" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("wp-slim-gallery.php" instead of "wpslimgallery.php")
- Description: Keep the plugin description shorter than 140 characters (currently 153 characters long)
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
Success! There were no dangerous files found in this plugin311 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 32 | 2 | 163 |
PHP | 2 | 26 | 39 | 140 |
JavaScript | 1 | 1 | 6 | 8 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.13 |
Average class complexity | 3.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 2.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 | 3 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 7 | |
▷ Named functions | 7 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
There are no PNG files in this plugin