Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.10MB] [CPU: ▼2.74ms] Passed 4 tests
Server-side resources used by Custom Functions Starter Kit by DraftPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.55 ▲0.10 | 37.85 ▼1.00 |
Dashboard /wp-admin | 3.41 ▲0.10 | 45.30 ▼3.12 |
Posts /wp-admin/edit.php | 3.52 ▲0.16 | 47.32 ▼0.16 |
Add New Post /wp-admin/post-new.php | 5.99 ▲0.10 | 81.36 ▼6.17 |
Media Library /wp-admin/upload.php | 3.33 ▲0.10 | 35.01 ▼0.65 |
Custom Functions /wp-admin/tools.php?page=custom-functions-admin-menu-settings | 3.30 | 32.53 |
Server storage [IO: ▲1.60MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 39 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
widget_recent-posts |
db_upgraded |
Browser metrics Passed 4 tests
Checking browser requirements for Custom Functions Starter Kit by DraftPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲47 | 13.22 ▼1.32 | 1.68 ▼0.18 | 40.61 ▼1.44 |
Dashboard /wp-admin | 2,210 ▲22 | 4.87 ▼1.02 | 101.87 ▼4.51 | 37.66 ▼8.55 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.00 ▼0.03 | 39.98 ▼3.88 | 35.60 ▼1.90 |
Add New Post /wp-admin/post-new.php | 1,517 ▼16 | 18.04 ▼5.45 | 665.43 ▲62.01 | 59.92 ▼2.51 |
Media Library /wp-admin/upload.php | 1,392 ▲1 | 4.21 ▼0.03 | 93.78 ▼4.09 | 40.92 ▼1.74 |
Custom Functions /wp-admin/tools.php?page=custom-functions-admin-menu-settings | 1,355 | 2.27 | 43.83 | 73.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_recent-comments
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
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
The following issues need your attention
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/custom-functions-starter-kit/admin/sidebar.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/custom-functions-starter-kit/admin/header.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/custom-functions-starter-kit/admin/header.php:7
- > 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 take a look at the following user-side issues
- > GET request to /wp-admin/tools.php?page=custom-functions-admin-menu-settings
- > Network (severe)
http://feeds.feedburner.com/99robots?format=sigpro - Failed to load resource: net::ERR_BLOCKED_BY_RESPONSE.NotSameSite
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
Please fix the following attributes:
- Donate link: Invalid URI ("")
custom-functions-starter-kit/custom-functions-starter-kit.php 85% from 13 tests
The main PHP file in "Custom Functions Starter Kit by DraftPress" ver. 2.1.7 adds more information about the plugin and also serves as the entry point for this plugin
Please make the necessary changes and fix the following:
- Domain Path: The domain path is invalid: folder "/languages" does not exist
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
Good job! No executable or dangerous file extensions detected10,050 lines of code in 18 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 7 | 47 | 50 | 6,954 |
JavaScript | 3 | 743 | 332 | 2,230 |
PHP | 6 | 195 | 287 | 603 |
SVG | 1 | 0 | 0 | 229 |
Markdown | 1 | 17 | 0 | 34 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity problems
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.44 |
Average class complexity | 31.00 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 59.00 |
Average method complexity | 2.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 38 | |
▷ Static methods | 1 | 2.63% |
▷ Public methods | 29 | 76.32% |
▷ Protected methods | 6 | 15.79% |
▷ Private methods | 3 | 7.89% |
Functions | 1 | |
▷ Named functions | 1 | 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 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
14 PNG files occupy 0.59MB with 0.39MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/avatar-gray-50.png | 6.39KB | 2.24KB | ▼ 64.96% |
img/rainbow-strip-hz-wide.png | 3.24KB | 0.57KB | ▼ 82.36% |
img/logo-only-80h@2x.png | 24.48KB | 8.09KB | ▼ 66.96% |
img/ad-custom-development@2x.png | 119.94KB | 54.91KB | ▼ 54.22% |
screenshot-3.png | 80.25KB | 31.04KB | ▼ 61.32% |