Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼143.59ms] Passed 4 tests
A check of server-side resources used by 3D Photo Gallery
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.86 ▲0.02 | 36.88 ▲0.49 |
Dashboard /wp-admin | 3.08 ▲0.03 | 52.39 ▲1.34 |
Posts /wp-admin/edit.php | 3.13 ▲0.03 | 43.62 ▼4.95 |
Add New Post /wp-admin/post-new.php | 5.45 ▲0.02 | 100.31 ▼562.01 |
Media Library /wp-admin/upload.php | 3.03 ▲0.02 | 33.48 ▼7.89 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 18 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
A check of browser resources used by 3D Photo Gallery
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,723 ▲151 | 15.94 ▲0.06 | 10.19 ▲0.33 | 48.11 ▼3.70 |
Dashboard /wp-admin | 3,015 ▲78 | 5.98 ▲0.02 | 136.30 ▼18.74 | 109.83 ▼6.63 |
Posts /wp-admin/edit.php | 2,759 ▲23 | 2.69 ▼0.12 | 69.23 ▲4.46 | 93.12 ▲2.50 |
Add New Post /wp-admin/post-new.php | 1,696 ▲196 | 18.73 ▲0.23 | 390.70 ▲7.98 | 104.36 ▼13.50 |
Media Library /wp-admin/upload.php | 1,827 ▲20 | 5.03 ▲0.01 | 161.50 ▲8.54 | 125.26 ▼2.94 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Uninstaller ran successfully
Smoke tests 75% from 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)
The smoke test was a success, however most plugin functionality was not tested
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
Please take a closer look at the following
- 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/3d-photo-gallery/plugin.class.php:10
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 86% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Tags: There are too many tags (13 tag instead of maximum 10)
3d-photo-gallery/index.php 77% from 13 tests
The primary PHP file in "3D Photo Gallery" version 1.3 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("3d-photo-gallery.php" instead of "index.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 168 characters long)
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
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
No dangerous file extensions were detected956 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 159 | 42 | 427 |
CSS | 3 | 4 | 7 | 287 |
SVG | 1 | 0 | 0 | 146 |
PHP | 2 | 24 | 28 | 96 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.23 |
Average class complexity | 7.00 |
▷ Minimum class complexity | 7.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 2.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 6 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 6 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.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 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.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/arrows.png | 2.23KB | 0.88KB | ▼ 60.33% |