Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.08MB] [CPU: ▼6.78ms] Passed 4 tests
Server-side resources used by Sell Photo
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.54 ▲0.07 | 43.37 ▲1.40 |
Dashboard /wp-admin | 3.38 ▲0.08 | 54.69 ▲1.29 |
Posts /wp-admin/edit.php | 3.43 ▲0.08 | 49.95 ▼2.28 |
Add New Post /wp-admin/post-new.php | 5.96 ▲0.08 | 83.26 ▼23.83 |
Media Library /wp-admin/upload.php | 3.31 ▲0.08 | 32.82 ▼2.28 |
Sell Photo /wp-admin/options-general.php?page=sell-photo-settings | 3.27 | 34.68 |
Server storage [IO: ▲0.02MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 12 new options
New WordPress options |
---|
widget_recent-posts |
sell_photo_button_anchor |
can_compress_scripts |
sell_photo_currency_code |
sell_photo_return_url |
theysaidso_admin_options |
sell_photo_price_amount |
db_upgraded |
sell_photo_plugin_version |
sell_photo_paypal_email |
... |
Browser metrics Passed 4 tests
Sell Photo: an overview of browser usage
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 13.25 ▼1.31 | 1.92 ▲0.07 | 43.99 ▲0.56 |
Dashboard /wp-admin | 2,213 ▲31 | 4.80 ▼1.05 | 111.68 ▲7.72 | 44.41 ▲1.64 |
Posts /wp-admin/edit.php | 2,093 ▲1 | 2.00 ▲0.01 | 36.91 ▼2.78 | 36.06 ▼2.95 |
Add New Post /wp-admin/post-new.php | 1,525 ▼3 | 23.41 ▲0.29 | 676.35 ▲52.27 | 62.80 ▲9.49 |
Media Library /wp-admin/upload.php | 1,395 ▲10 | 4.23 ▲0.04 | 100.65 ▲2.31 | 47.28 ▲4.17 |
Sell Photo /wp-admin/options-general.php?page=sell-photo-settings | 895 | 2.05 | 26.51 | 30.70 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- Zombie WordPress options were found after uninstall: 12 options
- sell_photo_return_url
- sell_photo_paypal_email
- widget_theysaidso_widget
- widget_recent-comments
- widget_recent-posts
- sell_photo_currency_code
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- sell_photo_button_anchor
- ...
Smoke tests Passed 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 Passed 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
No output text or server-side errors detected on direct access of PHP files
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 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
These attributes need to be fixed:
- Screenshots: Please describe screenshot #1 in sell-photo/assets to your readme.txt
sell-photo/main.php 92% from 13 tests
"Sell Photo" version 1.0.7's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("sell-photo.php" instead of "main.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
There were no executable files found in this plugin426 lines of code in 1 file:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 1 | 48 | 35 | 426 |
PHP code Passed 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 25.00 |
▷ Minimum class complexity | 25.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 2.85 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 11.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 | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 13 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 4 | |
▷ Global constants | 4 | 100.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
There are no PNG files in this plugin