Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▼5.79ms] Passed 4 tests
Server-side resources used by wegfinder
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 41.17 ▼4.93 |
Dashboard /wp-admin | 3.49 ▲0.19 | 51.94 ▼3.94 |
Posts /wp-admin/edit.php | 3.61 ▲0.25 | 52.61 ▼1.08 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 96.13 ▼13.22 |
Media Library /wp-admin/upload.php | 3.42 ▲0.19 | 39.74 ▲2.78 |
Design /wp-admin/admin.php?page=wegfinder-settings | 3.38 | 38.91 |
Add New /wp-admin/admin.php?page=wegfinder-new | 3.38 | 35.30 |
All Destinations /wp-admin/admin.php?page=wegfinder-list | 3.39 | 37.24 |
wegfinder /wp-admin/admin.php?page=wegfinder | 3.39 | 34.43 |
Server storage [IO: ▲0.16MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 36 new files
Database: 1 new table, 8 new options
New tables |
---|
wp_wegfinder |
New WordPress options |
---|
db_upgraded |
wegfinder_settings |
widget_theysaidso_widget |
widget_recent-posts |
wegfinder_db_version |
can_compress_scripts |
widget_recent-comments |
theysaidso_admin_options |
Browser metrics Passed 4 tests
A check of browser resources used by wegfinder
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,833 ▲87 | 14.34 ▼0.01 | 1.68 ▲0.09 | 42.52 ▲3.76 |
Dashboard /wp-admin | 2,237 ▲66 | 5.53 ▼0.14 | 93.56 ▼0.84 | 82.04 ▲38.99 |
Posts /wp-admin/edit.php | 2,143 ▲43 | 2.03 ▲0.04 | 38.49 ▼1.60 | 34.26 ▼3.47 |
Add New Post /wp-admin/post-new.php | 1,592 ▲66 | 23.18 ▼0.59 | 695.15 ▲25.81 | 39.22 ▼7.69 |
Media Library /wp-admin/upload.php | 1,436 ▲39 | 4.14 ▼0.04 | 102.11 ▼3.67 | 70.61 ▲22.46 |
Design /wp-admin/admin.php?page=wegfinder-settings | 1,004 | 2.01 | 28.54 | 48.84 |
Add New /wp-admin/admin.php?page=wegfinder-new | 963 | 2.00 | 25.68 | 22.93 |
All Destinations /wp-admin/admin.php?page=wegfinder-list | 890 | 2.05 | 28.35 | 27.06 |
wegfinder /wp-admin/admin.php?page=wegfinder | 890 | 2.05 | 27.57 | 27.08 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-comments
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
- db_upgraded
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=wegfinder-settings
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
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
- 2× PHP files output text when accessed directly:
- > /wp-content/plugins/wegfinder/public/partials/wegfinder-public-display.php
- > /wp-content/plugins/wegfinder/admin/partials/wegfinder-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
Attributes that require attention:
- Tags: Please delete some tags, you are using 20 tag instead of maximum 10
wegfinder/wegfinder.php 92% from 13 tests
The entry point to "wegfinder" version 1.0.1 is a PHP file that has certain tags in its header comment area
You should first fix the following items:
- Description: Please keep the plugin description shorter than 140 characters (currently 178 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
Good job! No executable or dangerous file extensions detected2,063 lines of code in 25 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 289 | 266 | 771 |
PO File | 5 | 290 | 320 | 709 |
JavaScript | 4 | 118 | 21 | 454 |
CSS | 2 | 26 | 6 | 123 |
SVG | 2 | 0 | 0 | 6 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.29 |
Average class complexity | 13.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 70.00 |
Average method complexity | 2.47 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 7 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 7 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 58 | |
▷ Static methods | 6 | 10.34% |
▷ Public methods | 40 | 68.97% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 18 | 31.03% |
Functions | 4 | |
▷ Named functions | 3 | 75.00% |
▷ Anonymous functions | 1 | 25.00% |
Constants | 2 | |
▷ Global constants | 1 | 50.00% |
▷ Class constants | 1 | 50.00% |
▷ Public constants | 1 | 100.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
No PNG files were detected