Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The plugin installed gracefully, with no errors
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.38ms] Passed 4 tests
This is a short check of server-side resources used by Lunar - Sell photos online
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.42 ▼0.04 | 23.89 ▼16.86 |
Dashboard /wp-admin | 3.35 ▲0.05 | 51.87 ▼0.46 |
Posts /wp-admin/edit.php | 3.41 ▲0.05 | 54.53 ▲6.02 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.05 | 96.43 ▲1.79 |
Media Library /wp-admin/upload.php | 3.28 ▲0.05 | 47.28 ▲13.70 |
Lunar /wp-admin/edit.php?post_type=ln_grid | 3.35 | 42.43 |
Options /wp-admin/edit.php?post_type=ln_grid&page=ct_portfolio_sett | 3.28 | 39.92 |
New Album /wp-admin/post-new.php?post_type=ln_grid | 3.40 | 50.34 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 64 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
ct_is_rewrite |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Lunar - Sell photos online: an overview of browser usage
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲87 | 13.61 ▼0.80 | 1.80 ▼0.06 | 41.54 ▼2.93 |
Dashboard /wp-admin | 2,221 ▲36 | 4.89 ▲0.00 | 101.09 ▼16.72 | 85.53 ▲41.03 |
Posts /wp-admin/edit.php | 2,122 ▲33 | 2.14 ▲0.13 | 37.37 ▼0.59 | 31.28 ▼3.83 |
Add New Post /wp-admin/post-new.php | 1,694 ▲175 | 22.41 ▼0.84 | 737.35 ▲74.26 | 60.93 ▲1.00 |
Media Library /wp-admin/upload.php | 1,409 ▲21 | 4.20 ▼0.04 | 108.60 ▼2.61 | 52.24 ▲8.53 |
Lunar /wp-admin/edit.php?post_type=ln_grid | 1,306 | 3.83 | 55.29 | 94.01 |
Options /wp-admin/edit.php?post_type=ln_grid&page=ct_portfolio_sett | 1,184 | 3.74 | 47.34 | 92.28 |
New Album /wp-admin/post-new.php?post_type=ln_grid | 2,218 | 7.71 | 163.31 | 117.39 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- ct_is_rewrite
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting 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
Please fix the following items
- 14× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
require_once(): Failed opening required 'LN_CLASS_PATH/com/sakuraplugins/php/libs/resize_helper.php' (include_path='.:/usr/share/php') in wp-content/plugins/lunar-sell-photos-online/com/sakuraplugins/php/post-options.php on line 2
- > PHP Warning
Use of undefined constant LN_CLASS_PATH - assumed 'LN_CLASS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/lunar-sell-photos-online/com/sakuraplugins/php/plugin_core.php on line 3
- > PHP Warning
require_once(LN_CLASS_PATH/com/sakuraplugins/php/customposts/GenericPostType.php): failed to open stream: No such file or directory in wp-content/plugins/lunar-sell-photos-online/com/sakuraplugins/php/customposts/SkCPT.php on line 2
- > PHP Warning
require_once(LN_CLASS_PATH/com/sakuraplugins/php/libs/resize_helper.php): failed to open stream: No such file or directory in wp-content/plugins/lunar-sell-photos-online/com/sakuraplugins/php/post-options.php on line 2
- > PHP Warning
Use of undefined constant LN_CLASS_PATH - assumed 'LN_CLASS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/lunar-sell-photos-online/com/sakuraplugins/php/woo-post-options.php on line 2
- > PHP Warning
require_once(LN_CLASS_PATHcom/sakuraplugins/php/customposts/SkCPT.php): failed to open stream: No such file or directory in wp-content/plugins/lunar-sell-photos-online/com/sakuraplugins/php/plugin_core.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function get_plugin_data() in wp-content/plugins/lunar-sell-photos-online/com/sakuraplugins/php/admin_pages/banner.php:2
- > PHP Warning
Use of undefined constant LN_CLASS_PATH - assumed 'LN_CLASS_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/lunar-sell-photos-online/com/sakuraplugins/php/customposts/SkCPT.php on line 2
- > PHP Fatal error
require_once(): Failed opening required 'LN_CLASS_PATH/com/sakuraplugins/php/customposts/GenericPostType.php' (include_path='.:/usr/share/php') in wp-content/plugins/lunar-sell-photos-online/com/sakuraplugins/php/customposts/SkCPT.php on line 2
- > PHP Warning
require_once(LN_CLASS_PATH/com/sakuraplugins/php/libs/resize_helper.php): failed to open stream: No such file or directory in wp-content/plugins/lunar-sell-photos-online/com/sakuraplugins/php/woo-post-options.php on line 2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
No browser errors were detected
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
8 plugin tags: exif, woocommerce, exif data, sell photos, gallery...
lunar-sell-photos-online/lunar-woo.php 92% from 13 tests
Analyzing the main PHP file in "Lunar - Sell photos online" version 1.3.0
It is important to fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("lunar-sell-photos-online.php" instead of "lunar-woo.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Everything looks great! No dangerous files found in this plugin4,020 lines of code in 23 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 17 | 395 | 756 | 1,715 |
JavaScript | 3 | 128 | 97 | 1,275 |
CSS | 3 | 48 | 36 | 1,030 |
PHP code Passed 2 tests
A short review 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.45 |
Average class complexity | 18.59 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 113.00 |
Average method complexity | 3.40 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 69.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 17 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 17 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 118 | |
▷ Static methods | 19 | 16.10% |
▷ Public methods | 103 | 87.29% |
▷ Protected methods | 3 | 2.54% |
▷ Private methods | 12 | 10.17% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 22 | |
▷ Global constants | 11 | 50.00% |
▷ Class constants | 11 | 50.00% |
▷ Public constants | 11 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
38 PNG files occupy 0.11MB with 0.07MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
com/sakuraplugins/images/icons/camera-lens.png | 1.54KB | 0.80KB | ▼ 48.20% |
com/sakuraplugins/images/icons/blue-folder-open-film.png | 1.52KB | 0.88KB | ▼ 41.96% |
com/sakuraplugins/images/icons/camera-plus.png | 1.51KB | 0.72KB | ▼ 52.46% |
com/sakuraplugins/css/images/edit.png | 3.34KB | 0.58KB | ▼ 82.49% |
com/sakuraplugins/images/ui/align_right.PNG | 2.87KB | 0.22KB | ▼ 92.21% |