Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.63MB] [CPU: ▼156.59ms] Passed 4 tests
Analyzing server-side resources used by Customizer Field EndPoint
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.85 ▲0.13 | 41.03 ▲19.96 |
Dashboard /wp-admin | 3.07 ▲0.01 | 41.19 ▲1.95 |
Posts /wp-admin/edit.php | 3.15 ▲0.05 | 44.22 ▲2.36 |
Add New Post /wp-admin/post-new.php | 2.85 ▼2.58 | 24.28 ▼631.16 |
Media Library /wp-admin/upload.php | 3.01 ▲0.01 | 33.16 ▲0.48 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, no new options
Browser metrics Passed 4 tests
Checking browser requirements for Customizer Field EndPoint
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,792 ▲196 | 16.25 ▲0.32 | 15.36 ▲6.87 | 46.44 ▲3.55 |
Dashboard /wp-admin | 2,971 ▲37 | 5.90 ▼0.05 | 136.48 ▼0.98 | 110.45 ▼8.27 |
Posts /wp-admin/edit.php | 2,743 ▲4 | 2.69 ▲0.01 | 62.42 ▼1.72 | 85.48 ▼6.92 |
Add New Post /wp-admin/post-new.php | 1,680 ▲8 | 18.88 ▼0.24 | 360.25 ▼32.01 | 111.64 ▼6.15 |
Media Library /wp-admin/upload.php | 1,814 ▲1 | 5.01 ▲0.02 | 145.20 ▼4.12 | 119.73 ▲0.04 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
This plugin's uninstaller ran successfully
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please fix the following items
- 2× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/wp-rest-theme-mod-endpoint/admin/partials/customizer-end-point-admin-display.php
- > /wp-content/plugins/wp-rest-theme-mod-endpoint/public/partials/customizer-end-point-public-display.php
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 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
These attributes need to be fixed:
- Donate link: Invalid URI ("")
- Plugin Name: Please specify the plugin name on the first line (
=== wp-rest-theme-mod-endpoint ===
)
wp-rest-theme-mod-endpoint/customizer-end-point.php 85% from 13 tests
The main PHP script in "Customizer Field EndPoint" version 1.0.0 is automatically included on every request by WordPress
Please make the necessary changes and fix the following:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("wp-rest-theme-mod-endpoint.php" instead of "customizer-end-point.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected180 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 119 | 530 | 174 |
JavaScript | 2 | 4 | 54 | 6 |
CSS | 2 | 0 | 8 | 0 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.06 |
Average class complexity | 1.29 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 3.00 |
Average method complexity | 1.08 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 3.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 | 25 | |
▷ Static methods | 2 | 8.00% |
▷ Public methods | 20 | 80.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 20.00% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
PNG images were not found in this plugin