Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲1.96MB] [CPU: ▲6.23ms] Passed 4 tests
Analyzing server-side resources used by Photo Gallery by Codexin - Image Gallery with Lightbox
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.41 ▲1.95 | 52.02 ▲12.55 |
Dashboard /wp-admin | 5.31 ▲2.01 | 58.36 ▲1.71 |
Posts /wp-admin/edit.php | 5.36 ▲2.00 | 58.91 ▲10.08 |
Add New Post /wp-admin/post-new.php | 7.84 ▲1.95 | 94.39 ▲0.56 |
Media Library /wp-admin/upload.php | 5.15 ▲1.91 | 52.83 ▲17.83 |
All Galleries /wp-admin/edit.php?post_type=cdxn-gallery | 5.22 | 51.24 |
Add New Gallery /wp-admin/post-new.php?post_type=cdxn-gallery | 5.35 | 64.95 |
Server storage [IO: ▲9.17MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin was installed successfully
Filesystem: 598 new files
Database: no new tables, 8 new options
New WordPress options |
---|
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
cdxn_ig_plugin_permalinks_flushed |
can_compress_scripts |
db_upgraded |
cdxn_ig_plugin_activation_time |
widget_recent-comments |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Photo Gallery by Codexin - Image Gallery with Lightbox
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,124 ▲389 | 18.32 ▲3.67 | 1.93 ▲0.16 | 39.33 ▼6.56 |
Dashboard /wp-admin | 2,501 ▲313 | 9.17 ▲4.10 | 185.11 ▲73.04 | 37.76 ▼4.93 |
Posts /wp-admin/edit.php | 2,404 ▲312 | 6.20 ▲4.20 | 73.65 ▲30.62 | 30.46 ▼4.32 |
Add New Post /wp-admin/post-new.php | 1,606 ▲92 | 20.10 ▲2.67 | 789.64 ▲152.05 | 50.29 ▼6.12 |
Media Library /wp-admin/upload.php | 1,543 ▲152 | 6.59 ▲2.40 | 111.65 ▲12.69 | 41.92 ▼0.63 |
All Galleries /wp-admin/edit.php?post_type=cdxn-gallery | 1,419 | 6.21 | 83.12 | 27.95 |
Add New Gallery /wp-admin/post-new.php?post_type=cdxn-gallery | 2,738 | 10.05 | 214.79 | 57.13 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/codexin-image-gallery/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php
- 210× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Comparer\\Comparer' not found in wp-content/plugins/codexin-image-gallery/vendor/htmlburger/carbon-fields/core/Container/Condition/Comparer/Custom_Comparer.php:7
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Field\\Media_Gallery_Field' not found in wp-content/plugins/codexin-image-gallery/extension/core/Gallery_Field.php:18
- > PHP Fatal error
Uncaught Error: Interface 'Carbon_Fields\\Container\\Fulfillable\\Fulfillable' not found in wp-content/plugins/codexin-image-gallery/vendor/htmlburger/carbon-fields/core/Container/Fulfillable/Fulfillable_Collection.php:9
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/codexin-image-gallery/vendor/composer/installers/src/Composer/Installers/LavaLiteInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Container\\Condition\\Comparer\\Comparer' not found in wp-content/plugins/codexin-image-gallery/vendor/htmlburger/carbon-fields/core/Container/Condition/Comparer/Equality_Comparer.php:5
- > PHP Warning
Invalid argument supplied for foreach() in wp-content/plugins/codexin-image-gallery/vendor/htmlburger/carbon-fields/templates/Exception/incorrect-syntax.php on line 35
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installer\\LibraryInstaller' not found in wp-content/plugins/codexin-image-gallery/vendor/composer/installers/src/Composer/Installers/Installer.php:13
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/codexin-image-gallery/vendor/composer/installers/src/Composer/Installers/DecibelInstaller.php:4
- > PHP Fatal error
Uncaught Error: Class 'Carbon_Fields\\Datastore\\Post_Meta_Datastore' not found in wp-content/plugins/codexin-image-gallery/vendor/htmlburger/carbon-fields/core/Datastore/Nav_Menu_Item_Datastore.php:7
- > PHP Fatal error
Uncaught Error: Class 'Composer\\Installers\\BaseInstaller' not found in wp-content/plugins/codexin-image-gallery/vendor/composer/installers/src/Composer/Installers/ZikulaInstaller.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: wordpress gallery plugin, image showcase, photo gallery, responsive image gallery, image gallery
codexin-image-gallery/codexin-image-gallery.php 92% from 13 tests
The main PHP script in "Photo Gallery by Codexin - Image Gallery with Lightbox" version 1.1.0 is automatically included on every request by WordPress
You should first fix the following items:
- Description: Keep the plugin description shorter than 140 characters (currently 236 characters long)
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
Good job! No executable or dangerous file extensions detected34,369 lines of code in 525 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 169 | 5,497 | 8,869 | 13,333 |
PHP | 263 | 3,019 | 7,870 | 12,343 |
CSS | 16 | 634 | 1,248 | 3,853 |
PO File | 26 | 819 | 1,020 | 2,202 |
Sass | 46 | 329 | 0 | 1,751 |
HTML | 1 | 40 | 4 | 441 |
JSON | 2 | 0 | 0 | 378 |
SVG | 2 | 1 | 3 | 68 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.27 |
Average class complexity | 5.58 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 50.00 |
Average method complexity | 2.07 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 37.00 |
Code structure | ||
---|---|---|
Namespaces | 28 | |
Interfaces | 5 | |
Traits | 0 | |
Classes | 233 | |
▷ Abstract classes | 12 | 5.15% |
▷ Concrete classes | 221 | 94.85% |
▷ Final classes | 1 | 0.45% |
Methods | 1,037 | |
▷ Static methods | 96 | 9.26% |
▷ Public methods | 817 | 78.78% |
▷ Protected methods | 196 | 18.90% |
▷ Private methods | 24 | 2.31% |
Functions | 112 | |
▷ Named functions | 26 | 23.21% |
▷ Anonymous functions | 86 | 76.79% |
Constants | 39 | |
▷ Global constants | 13 | 33.33% |
▷ Class constants | 26 | 66.67% |
▷ Public constants | 26 | 100.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
7 compressed PNG files occupy 0.03MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/vendor/styles/default-skin.png | 0.53KB | 0.72KB | 0.00% |
assets/images/icon/plus.png | 2.25KB | 2.24KB | ▼ 0.65% |
assets/images/icon/heart.png | 8.17KB | 9.07KB | 0.00% |
assets/images/icon/eye.png | 7.29KB | 7.68KB | 0.00% |
assets/images/icon/plant-leafs.png | 6.23KB | 6.92KB | 0.00% |