Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲0.34MB] [CPU: ▼9.12ms] Passed 4 tests
Server-side resources used by Reshark PDB
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.78 ▲0.32 | 22.36 ▼17.97 |
Dashboard /wp-admin | 3.65 ▲0.34 | 45.82 ▼1.51 |
Posts /wp-admin/edit.php | 3.76 ▲0.40 | 50.98 ▲3.16 |
Add New Post /wp-admin/post-new.php | 6.25 ▲0.36 | 85.75 ▼20.14 |
Media Library /wp-admin/upload.php | 3.57 ▲0.34 | 36.85 ▲4.02 |
Server storage [IO: ▲0.87MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Reshark PDB
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,483 ▼263 | 13.20 ▼1.55 | 0.59 ▼1.32 | 15.68 ▼27.23 |
Dashboard /wp-admin | 2,227 ▲42 | 4.89 ▼0.95 | 107.80 ▼3.29 | 40.03 ▼5.05 |
Posts /wp-admin/edit.php | 2,106 ▲20 | 2.04 ▲0.00 | 40.88 ▲4.98 | 35.50 ▲0.09 |
Add New Post /wp-admin/post-new.php | 1,530 ▼7 | 23.28 ▲0.03 | 646.20 ▼35.63 | 64.66 ▲7.23 |
Media Library /wp-admin/upload.php | 1,400 ▲12 | 4.35 ▼0.09 | 100.16 ▼13.21 | 44.76 ▼5.56 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
Smoke tests Passed 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Congratulations! This plugin passed the SRP test
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
No browser issues were found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
Please fix the following attributes:
- Tags: There are too many tags (13 tag instead of maximum 10)
reshark-pdb/reshark_pdb.php 85% from 13 tests
The entry point to "Reshark PDB" version 0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("reshark-pdb.php" instead of "reshark_pdb.php")
- Description: The description should be shorter than 140 characters (currently 165 characters long)
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
No dangerous file extensions were detected2,402 lines of code in 20 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 277 | 89 | 1,667 |
CSS | 4 | 64 | 3 | 395 |
JavaScript | 5 | 33 | 16 | 340 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
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 | 65 | |
▷ Named functions | 65 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 13 | |
▷ Global constants | 13 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
4 PNG files occupy 0.04MB with 0.02MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/marker_blue.png | 6.97KB | 3.25KB | ▼ 53.43% |
assets/images/logo_pt.png | 3.35KB | 2.31KB | ▼ 31.07% |
assets/images/ico_reshark.png | 30.84KB | 13.23KB | ▼ 57.11% |
assets/images/marker_yellow.png | 3.50KB | 1.27KB | ▼ 63.83% |