Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.00MB] [CPU: ▼13.60ms] Passed 4 tests
Analyzing server-side resources used by CTC Gallery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.81 ▼1.12 |
Dashboard /wp-admin | 3.31 ▼0.03 | 45.50 ▼19.15 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 49.14 ▲3.56 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 88.69 ▼11.28 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 35.29 ▼22.84 |
Server storage [IO: ▲6.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
There were no storage issued detected upon installing this plugin
Filesystem: 26 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
An overview of browser requirements for CTC Gallery
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,803 ▲32 | 13.10 ▼1.25 | 1.65 ▼0.30 | 41.38 ▼0.40 |
Dashboard /wp-admin | 2,206 ▲18 | 4.85 ▼0.01 | 108.63 ▲2.85 | 42.47 ▲3.17 |
Posts /wp-admin/edit.php | 2,089 ▼0 | 2.03 ▲0.02 | 39.23 ▲2.51 | 33.36 ▼3.71 |
Add New Post /wp-admin/post-new.php | 6,354 ▲4,819 | 27.70 ▲9.61 | 861.75 ▲242.20 | 50.25 ▼1.70 |
Media Library /wp-admin/upload.php | 1,388 ▲6 | 4.25 ▲0.08 | 94.49 ▼4.02 | 41.43 ▼1.21 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 6 options
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for 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
Almost there! Just fix the following items
- 1× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/block-for-masonry-gallery/ctc-gal-block.php:26
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
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 your attention:
- Screenshots: These screenshots have no corresponding images in /assets: #1 (Gutenberg Block), #2 (Block Setting), #3 (Frontend display), #4 (Image in overlay)
block-for-masonry-gallery/ctc-gal-block.php 77% from 13 tests
"CTC Gallery" version 2.6.0's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Git Repository: A Git repository was detected inside this plugin
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("block-for-masonry-gallery.php" instead of "ctc-gal-block.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Success! There were no dangerous files found in this plugin16,421 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 4 | 0 | 0 | 16,190 |
JavaScript | 6 | 72 | 102 | 173 |
Sass | 2 | 18 | 0 | 49 |
PHP | 3 | 1 | 20 | 7 |
CSS | 2 | 0 | 0 | 2 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of 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
All PNG images should be compressed to minimize bandwidth usage for end users
5 PNG files occupy 5.38MB with 3.98MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 1,540.60KB | 422.66KB | ▼ 72.57% |
screenshot-1.png | 935.22KB | 228.82KB | ▼ 75.53% |
screenshot-2..png | 999.21KB | 263.61KB | ▼ 73.62% |
screenshot-2.PNG | 1,039.31KB | 263.58KB | ▼ 74.64% |
screenshot-2.png | 999.21KB | 263.61KB | ▼ 73.62% |