Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Install script ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼151.33ms] Passed 4 tests
An overview of server-side resources used by CS Gallery
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.14 | 34.47 ▲12.84 |
Dashboard /wp-admin | 3.09 ▲0.03 | 40.75 ▼5.97 |
Posts /wp-admin/edit.php | 3.14 ▲0.03 | 42.14 ▼2.06 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.01 | 86.68 ▼595.39 |
Media Library /wp-admin/upload.php | 3.03 ▲0.03 | 33.05 ▼1.89 |
Server storage [IO: ▲0.67MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 20 new files
Database: 3 new tables, no new options
New tables |
---|
wp_csgalleryimages |
wp_csgallerycategories |
wp_csgalleryplaces |
Browser metrics Passed 4 tests
An overview of browser requirements for CS Gallery
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,679 ▲83 | 16.24 ▲0.65 | 9.58 ▲0.40 | 44.83 ▼1.71 |
Dashboard /wp-admin | 2,970 ▲39 | 6.01 ▼0.18 | 143.21 ▼0.31 | 106.34 ▼18.16 |
Posts /wp-admin/edit.php | 2,739 ▼0 | 2.71 ▼0.00 | 66.00 ▼21.91 | 77.32 ▼18.02 |
Add New Post /wp-admin/post-new.php | 1,498 ▼185 | 18.83 ▲0.58 | 392.91 ▼42.62 | 110.83 ▼6.23 |
Media Library /wp-admin/upload.php | 1,810 ▲3 | 5.05 ▲0.04 | 152.20 ▼33.79 | 117.00 ▲1.49 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Uninstall script ran successfully
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though no errors were found, this is by no means an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Looking good! No server-side errors or output on direct access of PHP files
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Attributes that require attention:
- Screenshots: These screenshots do not have images: #1 (CS Gallery), #2 (Popup dialog with responsive image size and description. Click the image for fullsize scrollable image.), #3 (Logged in Administrator or Editor.), #4 (Upload files and edit descriptions.), #5 (Add new, remove and edit Categories.)
cs-gallery/csgallery.php 92% from 13 tests
The main PHP file in "CS Gallery" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("cs-gallery.php" instead of "csgallery.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
Everything looks great! No dangerous files found in this plugin2,210 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 74 | 64 | 1,291 |
JavaScript | 1 | 32 | 31 | 805 |
CSS | 1 | 3 | 17 | 114 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.40 |
Average class complexity | 119.00 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 236.00 |
Average method complexity | 9.74 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 45.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 27 | |
▷ Static methods | 14 | 51.85% |
▷ Public methods | 21 | 77.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 22.22% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 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
5 PNG files occupy 0.07MB with 0.03MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/volume1600.png | 31.14KB | 22.97KB | ▼ 26.24% |
images/film256.png | 9.35KB | 4.08KB | ▼ 56.35% |
images/volume200.png | 6.70KB | 3.38KB | ▼ 49.49% |
images/sound256.png | 19.08KB | 12.89KB | ▼ 32.45% |
images/dokument256.png | 2.17KB | 1.20KB | ▼ 44.79% |