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.05MB] [CPU: ▼10.40ms] Passed 4 tests
This is a short check of server-side resources used by Ephoto Dam
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.06 | 37.44 ▲2.26 |
Dashboard /wp-admin | 3.36 ▲0.02 | 49.32 ▼8.13 |
Posts /wp-admin/edit.php | 3.41 ▲0.06 | 45.55 ▼6.85 |
Add New Post /wp-admin/post-new.php | 5.95 ▲0.07 | 82.66 ▼22.79 |
Media Library /wp-admin/upload.php | 3.29 ▲0.06 | 31.69 ▼3.81 |
Ephoto Dam /wp-admin/options-general.php?page=ephoto-options | 3.27 | 33.97 |
Server storage [IO: ▲0.26MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 7 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
ephoto-dam |
widget_recent-posts |
widget_theysaidso_widget |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Ephoto Dam
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,876 ▲115 | 13.54 ▼0.81 | 8.70 ▲6.82 | 44.23 ▼8.28 |
Dashboard /wp-admin | 2,202 ▲22 | 5.58 ▼0.04 | 95.51 ▲0.48 | 43.72 ▼0.89 |
Posts /wp-admin/edit.php | 2,101 ▼2 | 2.01 ▲0.05 | 33.66 ▼9.80 | 37.69 ▼1.11 |
Add New Post /wp-admin/post-new.php | 6,208 ▲4,682 | 18.93 ▼4.55 | 931.61 ▲259.34 | 39.19 ▼16.22 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.21 ▼0.03 | 93.87 ▼4.65 | 44.25 ▼2.88 |
Ephoto Dam /wp-admin/options-general.php?page=ephoto-options | 847 | 2.03 | 22.75 | 26.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- widget_theysaidso_widget
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 everything seems fine, this is not an exhaustive test
SRP Passed 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% 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
Attributes that require attention:
- Screenshots: These screenshots require images: #1 (Administration interface), #2 (Insert a block, call the Ephoto Dam software and select a media file), #3 (Manage your media file easily in the Gutenberg editor)
- Plugin Name: Please replace "Plugin Name" with the name of your plugin on the first line (
=== ephoto-plugin ===
)
ephoto-plugin/ephoto-dam.php 77% from 13 tests
The primary PHP file in "Ephoto Dam" version 3.1.5 is used by WordPress to initiate all plugin functionality
Please make the necessary changes and fix the following:
- Main file name: It is recommended to name the main PHP file as the plugin slug ("ephoto-plugin.php" instead of "ephoto-dam.php")
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 142 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
No dangerous file extensions were detected765 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 4 | 114 | 93 | 370 |
PHP | 7 | 115 | 140 | 323 |
CSS | 3 | 12 | 11 | 69 |
JSON | 3 | 0 | 0 | 3 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.26 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 18 | |
▷ Named functions | 18 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 PNG files occupy 0.21MB with 0.10MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 109.93KB | 38.73KB | ▼ 64.77% |
images/close.png | 1.48KB | 1.73KB | 0.00% |
screenshot-1.png | 30.11KB | 11.74KB | ▼ 61.00% |
screenshot-2.png | 72.71KB | 27.23KB | ▼ 62.55% |