Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.25MB] [CPU: ▼2.82ms] Passed 4 tests
A check of server-side resources used by Photogallery
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 39.82 ▼3.56 |
Dashboard /wp-admin | 3.55 ▲0.25 | 52.92 ▲0.26 |
Posts /wp-admin/edit.php | 3.67 ▲0.32 | 55.70 ▲3.93 |
Add New Post /wp-admin/post-new.php | 6.13 ▲0.24 | 86.60 ▼11.39 |
Media Library /wp-admin/upload.php | 3.47 ▲0.24 | 41.66 ▲3.40 |
New Album /wp-admin/post-new.php?post_type=photoalbum | 3.62 | 53.25 |
New Gallery /wp-admin/post-new.php?post_type=photogallery | 3.58 | 51.87 |
All Galleries /wp-admin/edit.php?post_type=photogallery | 3.53 | 37.89 |
All Albums /wp-admin/edit.php?post_type=photoalbum | 3.53 | 39.04 |
Server storage [IO: ▲0.10MB] [DB: ▲0.01MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 5 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Photogallery: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲72 | 14.28 ▼0.07 | 1.65 ▼0.01 | 47.13 ▲2.27 |
Dashboard /wp-admin | 2,236 ▲59 | 5.62 ▼0.02 | 93.22 ▼6.47 | 42.72 ▼0.37 |
Posts /wp-admin/edit.php | 2,141 ▲38 | 1.98 ▼0.00 | 39.23 ▼0.19 | 38.08 ▲3.08 |
Add New Post /wp-admin/post-new.php | 1,558 ▲32 | 23.20 ▲0.08 | 663.46 ▲14.60 | 59.46 ▲3.53 |
Media Library /wp-admin/upload.php | 1,435 ▲32 | 4.25 ▲0.07 | 104.50 ▲5.86 | 45.94 ▲1.47 |
New Album /wp-admin/post-new.php?post_type=photoalbum | 2,708 | 7.73 | 177.54 | 83.08 |
New Gallery /wp-admin/post-new.php?post_type=photogallery | 2,527 | 6.75 | 154.76 | 68.33 |
All Galleries /wp-admin/edit.php?post_type=photogallery | 1,273 | 1.98 | 30.69 | 36.26 |
All Albums /wp-admin/edit.php?post_type=photoalbum | 1,255 | 1.94 | 30.28 | 32.67 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- widget_recent-comments
- widget_theysaidso_widget
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-posts
- db_upgraded
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Everything seems fine, however this is by no means an exhaustive test
SRP Passed 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
Everything seems fine, however this is by no means an exhaustive test
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
6 plugin tags: custom post types, image, photo, gallery, picture...
kt-photogallery/kt-photogallery.php Passed 13 tests
The entry point to "Photogallery" version 1.4 is a PHP file that has certain tags in its header comment area
33 characters long description:
Create photo-galleries with ease.
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
Success! There were no dangerous files found in this plugin1,714 lines of code in 4 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 53 | 76 | 855 |
JavaScript | 2 | 17 | 26 | 583 |
CSS | 1 | 33 | 9 | 276 |
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.40 |
Average class complexity | 126.00 |
▷ Minimum class complexity | 126.00 |
▷ Maximum class complexity | 126.00 |
Average method complexity | 4.05 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 12.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 41 | |
▷ Static methods | 1 | 2.44% |
▷ Public methods | 33 | 80.49% |
▷ Protected methods | 8 | 19.51% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 2 | 100.00% |
▷ Public constants | 2 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG images were found in this plugin