Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.09MB] [CPU: ▼5.42ms] Passed 4 tests
An overview of server-side resources used by vk photo album
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.56 ▲0.10 | 47.38 ▲6.14 |
Dashboard /wp-admin | 3.39 ▲0.09 | 53.26 ▲1.98 |
Posts /wp-admin/edit.php | 3.51 ▲0.15 | 51.09 ▼1.03 |
Add New Post /wp-admin/post-new.php | 5.98 ▲0.09 | 90.29 ▼17.20 |
Media Library /wp-admin/upload.php | 3.32 ▲0.09 | 36.10 ▼5.43 |
Photoalbums /wp-admin/edit-tags.php?taxonomy=photo_albums&post_type=wp-photo | 3.31 | 37.09 |
Add photo /wp-admin/post-new.php?post_type=wp-photo | 3.42 | 53.30 |
Photos list /wp-admin/edit.php?post_type=wp-photo | 3.36 | 38.69 |
Server storage [IO: ▲0.07MB] [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: 13 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for vk photo album
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,834 ▲88 | 13.29 ▼0.69 | 1.68 ▲0.05 | 44.65 ▼1.39 |
Dashboard /wp-admin | 2,234 ▲43 | 4.82 ▼0.08 | 106.84 ▼19.80 | 42.82 ▼4.09 |
Posts /wp-admin/edit.php | 2,120 ▲28 | 2.04 ▲0.02 | 34.22 ▼6.81 | 34.56 ▼1.82 |
Add New Post /wp-admin/post-new.php | 1,540 ▲4 | 17.34 ▼5.94 | 693.47 ▲70.68 | 54.66 ▼0.84 |
Media Library /wp-admin/upload.php | 1,416 ▲28 | 4.20 ▲0.00 | 101.18 ▼3.37 | 44.80 ▲1.43 |
Photoalbums /wp-admin/edit-tags.php?taxonomy=photo_albums&post_type=wp-photo | 1,290 | 2.14 | 28.28 | 30.84 |
Add photo /wp-admin/post-new.php?post_type=wp-photo | 2,241 | 4.00 | 83.72 | 38.90 |
Photos list /wp-admin/edit.php?post_type=wp-photo | 1,159 | 1.93 | 31.59 | 35.19 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Even though no errors were found, this is by no means an exhaustive test
SRP 50% 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
The following issues need your attention
- 6× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/vk-photo-albums/WordpressPhotoAlbum.php:426
- > PHP Fatal error
Uncaught Error: Class 'WordpressPhotoAlbum' not found in wp-content/plugins/vk-photo-albums/templates/album.php:5
- > PHP Fatal error
Uncaught Error: Class 'WordpressPhotoAlbum' not found in wp-content/plugins/vk-photo-albums/templates/api/album-photos.php:4
- > PHP Fatal error
Uncaught Error: Class 'WordpressPhotoAlbum' not found in wp-content/plugins/vk-photo-albums/templates/api/single-photo.php:7
- > PHP Fatal error
Uncaught Error: Class 'WordpressPhotoAlbum' not found in wp-content/plugins/vk-photo-albums/templates/photo.php:6
- > PHP Fatal error
Uncaught Error: Class 'WordpressPhotoAlbum' not found in wp-content/plugins/vk-photo-albums/templates/main.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
5 plugin tags: vk, gallery, album, images, photos
vk-photo-albums/wordpress-photo-album.php 92% from 13 tests
The main PHP script in "vk photo album" version 1.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("vk-photo-albums.php" instead of "wordpress-photo-album.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
No dangerous file extensions were detected935 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 9 | 156 | 105 | 607 |
JavaScript | 1 | 66 | 18 | 174 |
CSS | 1 | 50 | 3 | 154 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 35.00 |
▷ Minimum class complexity | 35.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.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 | 19 | |
▷ Static methods | 19 | 100.00% |
▷ Public methods | 12 | 63.16% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 36.84% |
Functions | 9 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 9 | 100.00% |
Constants | 5 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 5 | 100.00% |
▷ Public constants | 5 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
1 PNG file occupies 0.02MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
css/image-folder.png | 25.41KB | 9.51KB | ▼ 62.57% |