Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.26MB] [CPU: ▼314.38ms] Passed 4 tests
Analyzing server-side resources used by Circles Gallery
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.75 ▲0.23 | 58.96 ▲4.05 |
Dashboard /wp-admin | 3.71 ▲0.30 | 40.62 ▼39.21 |
Posts /wp-admin/edit.php | 3.94 ▲0.30 | 48.96 ▲4.62 |
Add New Post /wp-admin/post-new.php | 7.17 ▲0.20 | 100.03 ▼1,224.68 |
Media Library /wp-admin/upload.php | 3.63 ▲0.33 | 31.40 ▲2.31 |
Circles Gallery /wp-admin/options-general.php?page=circles-gallery | 3.56 | 27.11 |
Server storage [IO: ▲1.98MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 64 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Circles Gallery
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,915 ▲161 | 15.73 ▼0.01 | 10.31 ▲3.74 | 2.80 ▲0.26 |
Dashboard /wp-admin | 2,907 ▲49 | 6.18 ▼0.05 | 116.41 ▼20.56 | 154.24 ▼6.26 |
Posts /wp-admin/edit.php | 2,706 ▲19 | 3.24 ▲0.01 | 63.90 ▼32.12 | 140.27 ▼11.29 |
Add New Post /wp-admin/post-new.php | 1,723 ▼37 | 21.74 ▼0.71 | 485.37 ▲46.40 | 164.97 ▲6.25 |
Media Library /wp-admin/upload.php | 1,713 ▲12 | 5.47 ▼0.05 | 145.25 ▲4.86 | 184.36 ▼0.84 |
Circles Gallery /wp-admin/options-general.php?page=circles-gallery | 2,304 | 3.93 | 98.11 | 218.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled successfully, without leaving any zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% 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 fix the following
- 1× PHP files output non-empty strings when accessed directly via GET requests:
- > /wp-content/plugins/circles-gallery/public/views/public.php
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html() in wp-content/plugins/circles-gallery/admin/views/options.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/circles-gallery/admin/includes/cg-shortcode-editor.php:11
- > PHP Notice
Undefined variable: admin_url in wp-content/plugins/circles-gallery/admin/includes/cg-shortcode-editor.php on line 10
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/circles-gallery/admin/views/hover_slider.php:5
- > PHP Notice
Undefined variable: from_editor in wp-content/plugins/circles-gallery/admin/views/options.php on line 17
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that require attention:
- Tags: Please delete some tags, you are using 41 tag instead of maximum 10
circles-gallery/circles-gallery.php 92% from 13 tests
Analyzing the main PHP file in "Circles Gallery" version 1.0.10
The following require your attention:
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected7,352 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 4 | 164 | 2 | 4,773 |
PHP | 11 | 482 | 747 | 2,542 |
JavaScript | 4 | 5 | 38 | 37 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 58.29 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 209.00 |
Average method complexity | 5.31 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 91.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 93 | |
▷ Static methods | 15 | 16.13% |
▷ Public methods | 54 | 58.06% |
▷ Protected methods | 32 | 34.41% |
▷ Private methods | 7 | 7.53% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 53 | |
▷ Global constants | 52 | 98.11% |
▷ Class constants | 1 | 1.89% |
▷ Public constants | 1 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
6 compressed PNG files occupy 0.04MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/banner-772x250.png | 36.39KB | 15.59KB | ▼ 57.15% |
public/assets/lightbox/img/prev.png | 1.33KB | 1.59KB | 0.00% |
admin/assets/img/icon.png | 0.74KB | 0.69KB | ▼ 6.83% |
admin/assets/img/pro-strip.png | 0.50KB | 0.44KB | ▼ 10.83% |
public/assets/lightbox/img/next.png | 1.32KB | 1.58KB | 0.00% |