Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▼0.66MB] [CPU: ▼14.03ms] Passed 4 tests
This is a short check of server-side resources used by Gecko Theme Parts
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 45.86 ▲6.78 |
Dashboard /wp-admin | 3.34 ▲0.04 | 46.09 ▼2.78 |
Posts /wp-admin/edit.php | 3.39 ▲0.04 | 46.95 ▲0.88 |
Add New Post /wp-admin/post-new.php | 3.15 ▼2.73 | 36.69 ▼55.83 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 33.60 ▲1.63 |
Add New /wp-admin/post-new.php?post_type=gecko-theme-part | 3.15 | 35.41 |
Theme Parts /wp-admin/edit.php?post_type=gecko-theme-part | 3.31 | 37.50 |
Help /wp-admin/edit.php?post_type=gecko-theme-part&page=gecko-theme-parts-help | 3.26 | 31.14 |
Locations /wp-admin/edit.php?post_type=gecko-theme-part&page=gecko-theme-part-locations | 3.26 | 30.60 |
Server storage [IO: ▲0.09MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 25 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Gecko Theme Parts
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,838 ▲103 | 13.33 ▼1.05 | 6.02 ▲4.26 | 43.42 ▲1.94 |
Dashboard /wp-admin | 2,238 ▲47 | 4.86 ▼1.02 | 104.66 ▲0.65 | 38.96 ▼2.39 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 2.01 ▼0.02 | 38.84 ▲2.62 | 33.34 ▼1.61 |
Add New Post /wp-admin/post-new.php | 1,566 ▲29 | 23.51 ▲0.14 | 633.10 ▼34.71 | 56.92 ▼0.07 |
Media Library /wp-admin/upload.php | 1,417 ▲29 | 4.24 ▼0.10 | 102.46 ▲4.11 | 45.60 ▲4.06 |
Add New /wp-admin/post-new.php?post_type=gecko-theme-part | 6,435 | 23.33 | 908.50 | 31.45 |
Theme Parts /wp-admin/edit.php?post_type=gecko-theme-part | 1,085 | 1.99 | 31.22 | 29.42 |
Help /wp-admin/edit.php?post_type=gecko-theme-part&page=gecko-theme-parts-help | 831 | 2.03 | 30.92 | 34.16 |
Locations /wp-admin/edit.php?post_type=gecko-theme-part&page=gecko-theme-part-locations | 918 | 9.53 | 90.45 | 26.90 |
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
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
Smoke tests 25% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Almost there, just fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/post-new.php?post_type=gecko-theme-part
- > User notice in wp-includes/functions.php+5905
Function register_rest_route was called incorrectly. The REST API route definition for gecko-theme-parts/v1/location-management-data is missing the required permission_callback argument. For REST API routes that are intended to be public, use __return_true as the permission callback. Please see Debugging in WordPress for more information. (This message was added in version 5.5.0.)
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 fix the following items
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/gecko-theme-parts/admin/partials/gecko-theme-parts-locations-admin.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function admin_url() in wp-content/plugins/gecko-theme-parts/admin/partials/gecko-theme-parts-help.php:34
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following user-side errors
- > GET request to /wp-admin/edit.php?post_type=gecko-theme-part&page=gecko-theme-part-locations
- > Network (severe)
wp-json/gecko-theme-parts/v1/location-management-data - Failed to load resource: the server responded with a status of 404 (Not Found)
- > GET request to /wp-admin/edit.php?post_type=gecko-theme-part&page=gecko-theme-part-locations
- > Console-api (warning) in unknown
/wp-content/plugins/gecko-theme-parts/admin/build/scripts/location-management.js?ver=1589814802 1:50857 Error: Request failed with status code 404at e.exports (/wp-content/plugins/gecko-theme-parts/admin/build/scripts/location-management.js?ver=1589814802:2:25047)at e.exports (/wp-content/plugins/gecko-theme-parts/admin/build/scripts/location-management.js?ver=1589814802:2:43736)at d.onreadystatechange (/wp-content/plugins/gecko-theme-parts/admin/build/scripts/location-management.js?ver=1589814802:2:23896)
Optimizations
Plugin configuration Passed 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
3 plugin tags: gutenberg, block editor, template
gecko-theme-parts/gecko-theme-parts.php Passed 13 tests
The main PHP file in "Gecko Theme Parts" ver. 1.0.0 adds more information about the plugin and also serves as the entry point for this plugin
47 characters long description:
Custom block areas to be used in template parts
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Good job! No executable or dangerous file extensions detected425 lines of code in 17 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 116 | 108 | 423 |
JSON | 1 | 0 | 0 | 1 |
JavaScript | 1 | 0 | 1 | 1 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.18 |
Average class complexity | 3.20 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 8.00 |
Average method complexity | 1.46 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 10 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 10 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 37 | |
▷ Static methods | 3 | 8.11% |
▷ Public methods | 31 | 83.78% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 6 | 16.22% |
Functions | 8 | |
▷ Named functions | 3 | 37.50% |
▷ Anonymous functions | 5 | 62.50% |
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
PNG files should be compressed to save space and minimize bandwidth usage
No PNG images were found in this plugin