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
Install script ran successfully
Server metrics [RAM: ▲0.01MB] [CPU: ▼2.88ms] Passed 4 tests
This is a short check of server-side resources used by CTCL Image Gallery
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 35.96 ▼5.89 |
Dashboard /wp-admin | 3.31 ▲0.01 | 42.27 ▼8.98 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 49.42 ▲4.08 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 94.83 ▲2.36 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 34.73 ▲0.99 |
Server storage [IO: ▲3.07MB] [DB: ▲0.07MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 24 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
can_compress_scripts |
widget_recent-posts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by CTCL Image Gallery
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲31 | 14.25 ▼0.09 | 1.82 ▲0.06 | 36.06 ▼7.83 |
Dashboard /wp-admin | 2,192 ▲11 | 5.62 ▼0.08 | 92.79 ▼19.93 | 37.69 ▼6.11 |
Posts /wp-admin/edit.php | 2,103 ▲3 | 1.96 ▲0.02 | 38.88 ▲2.21 | 36.42 ▲1.39 |
Add New Post /wp-admin/post-new.php | 1,540 ▼0 | 23.28 ▲0.08 | 663.50 ▲22.37 | 46.36 ▼5.30 |
Media Library /wp-admin/upload.php | 1,403 ▲3 | 4.14 ▼0.15 | 96.34 ▼0.63 | 47.01 ▲4.74 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 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
- The uninstall procedure has failed, leaving 6 options in the database
- db_upgraded
- widget_recent-comments
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
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
Please fix the following
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ctcl-image-gallery/ctcl-image-gallery.php:26
- > 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 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: These screenshots do not have images: #1 (Gutenberg block), #2 (Block setting), #3 (Post display of gallery), #4 (Image album in overlay)
ctcl-image-gallery/ctcl-image-gallery.php 85% from 13 tests
Analyzing the main PHP file in "CTCL Image Gallery" version 2.1.1
Please make the necessary changes and fix the following:
- Requires PHP: The required version number must match the one declared in readme.txt ("7.4.9" instead of "7.0")
- Git Repository: Please remove the Git repository from this plugin
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
Success! There were no dangerous files found in this plugin16,439 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 2 | 0 | 16,268 |
JavaScript | 6 | 62 | 66 | 128 |
Sass | 2 | 10 | 0 | 35 |
PHP | 3 | 1 | 20 | 7 |
CSS | 2 | 1 | 0 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.00 |
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 | 1 | |
▷ Named functions | 1 | 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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
3 PNG files occupy 2.37MB with 1.67MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 878.93KB | 257.94KB | ▼ 70.65% |
screenshot-1.png | 777.80KB | 227.59KB | ▼ 70.74% |
screenshot-3.png | 770.08KB | 229.72KB | ▼ 70.17% |