Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼10.71ms] Passed 4 tests
Server-side resources used by Custom Frames
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.50 ▲0.04 | 41.31 ▼7.06 |
Dashboard /wp-admin | 3.46 ▲0.12 | 51.24 ▼18.04 |
Posts /wp-admin/edit.php | 3.58 ▲0.22 | 55.72 ▲1.74 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.16 | 94.02 ▼19.49 |
Media Library /wp-admin/upload.php | 3.39 ▲0.16 | 40.91 ▲3.80 |
Custom Frames /wp-admin/themes.php?page=customframes-settings | 3.36 | 36.73 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
There were no storage issued detected upon installing this plugin
Filesystem: 10 new files
Database: no new tables, 9 new options
New WordPress options |
---|
customframes-shadow-options |
widget_theysaidso_widget |
db_upgraded |
customframes-border-options |
theysaidso_admin_options |
customframes-caption-options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Custom Frames
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,912 ▲166 | 13.48 ▼0.89 | 10.70 ▲9.09 | 41.31 ▲0.07 |
Dashboard /wp-admin | 2,196 ▲16 | 5.51 ▼0.17 | 88.98 ▼5.49 | 38.82 ▼2.28 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.04 ▲0.05 | 40.27 ▲0.45 | 35.31 ▼2.76 |
Add New Post /wp-admin/post-new.php | 1,537 ▲11 | 18.41 ▼5.15 | 644.92 ▼70.65 | 67.24 ▲20.38 |
Media Library /wp-admin/upload.php | 1,398 ▼2 | 4.17 ▼0.02 | 97.90 ▼13.36 | 44.26 ▼3.94 |
Custom Frames /wp-admin/themes.php?page=customframes-settings | 885 | 2.00 | 29.85 | 28.20 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- Zombie WordPress options detected upon uninstall: 6 options
- can_compress_scripts
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
- theysaidso_admin_options
- widget_recent-posts
Smoke tests 50% 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)
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/themes.php?page=customframes-settings
- > request to
- > Notice in wp-config.php+20
Undefined index: REQUEST_METHOD
SRP 50% from 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
The following issues need your attention
- 3× PHP files trigger server errors when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/custom-frames/customframes.php:31
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/custom-frames/class.customframes-admin.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/custom-frames/class.customframes.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Please fix the following attributes:
- Tags: You are using too many tags: 12 tag instead of maximum 10
- Donate link: Invalid URI ("staff@digital-scripts.com")
custom-frames/customframes.php 92% from 13 tests
"Custom Frames" version 1.0.1's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("custom-frames.php" instead of "customframes.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Everything looks great! No dangerous files found in this plugin712 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 57 | 33 | 572 |
JavaScript | 2 | 0 | 0 | 117 |
CSS | 1 | 0 | 0 | 23 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.35 |
Average class complexity | 37.00 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 46.00 |
Average method complexity | 2.71 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.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 | 42 | |
▷ Static methods | 5 | 11.90% |
▷ Public methods | 42 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
1 PNG file occupies 0.02MB with 0.01MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/header.png | 18.31KB | 6.62KB | ▼ 63.84% |