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.01MB] [CPU: ▼3.18ms] Passed 4 tests
Analyzing server-side resources used by Category Gallery
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.47 ▲0.00 | 40.11 ▼1.59 |
Dashboard /wp-admin | 3.31 ▲0.01 | 46.86 ▼3.82 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 47.59 ▲1.14 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 90.67 ▼8.43 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 36.57 ▲3.55 |
Category Gallery /wp-admin/options-general.php?page=Category_Gallery | 3.17 | 29.61 |
Server storage [IO: ▲0.07MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 24 new files
Database: no new tables, 10 new options
New WordPress options |
---|
theysaidso_admin_options |
catgal_otoplay |
catgal_interval |
catgal_enableTitle |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
catgal_enableControls |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for Category Gallery
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.61 ▼0.74 | 2.16 ▲0.35 | 42.98 ▼1.60 |
Dashboard /wp-admin | 2,210 ▲22 | 5.83 ▼0.02 | 95.58 ▼16.06 | 38.45 ▼0.17 |
Posts /wp-admin/edit.php | 2,090 ▲1 | 2.01 ▼0.02 | 39.66 ▼0.86 | 33.73 ▼1.66 |
Add New Post /wp-admin/post-new.php | 1,545 ▲23 | 18.41 ▼5.13 | 660.35 ▲20.22 | 61.13 ▲5.28 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.19 ▲0.05 | 114.18 ▲7.41 | 48.05 ▲2.68 |
Category Gallery /wp-admin/options-general.php?page=Category_Gallery | 906 | 2.15 | 22.72 | 28.72 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
These server-side errors were triggered
- > GET request to /wp-admin/options-general.php?page=Category_Gallery
- > Notice in wp-content/plugins/category-gallery/categorygalery.php+159
Undefined index: gizli
SRP 50% 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
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/category-gallery/trunk/categorygalery.php
- > /wp-content/plugins/category-gallery/categorygalery.php
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Please fix the following user-side errors
- > GET request to /wp-admin/options-general.php?page=Category_Gallery
- > Javascript (severe) in unknown
/wp-admin/options-general.php?page=Category_Gallery 170:43 Uncaught TypeError: Cannot set properties of null (setting 'value')
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
These attributes need to be fixed:
- Donate link: Invalid URI ("www.ermanseneren.com/donate")
category-gallery/categorygalery.php 77% from 13 tests
The principal PHP file in "Category Gallery" v. Version (1.1)... is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("category-gallery.php" instead of "categorygalery.php")
- Version: The version number should be digits and periods (ex. "1.0.3" instead of "Version (1.1)...")
- Description: Please don't use more than 140 characters for the plugin description (currently 146 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
No dangerous file extensions were detected585 lines of code in 6 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 57 | 24 | 401 |
CSS | 2 | 10 | 6 | 182 |
JavaScript | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 14 | |
▷ Named functions | 14 | 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
PNG files should be compressed to save space and minimize bandwidth usage
14 PNG files occupy 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
i/50transparent.png | 0.11KB | 0.09KB | ▼ 12.84% |
trunk/i/gtk-media-play-ltr.png | 1.15KB | 0.33KB | ▼ 71.56% |
i/gtk-media-next-rtl.png | 1.69KB | 0.47KB | ▼ 72.24% |
trunk/i/gtk-media-pause.png | 0.99KB | 0.14KB | ▼ 85.57% |
trunk/i/gtk-media-next-ltr.png | 1.98KB | 0.79KB | ▼ 59.92% |