Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.15MB] [CPU: ▼1.76ms] Passed 4 tests
Analyzing server-side resources used by Custom Card Link
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.62 ▲0.16 | 44.60 ▲1.24 |
Dashboard /wp-admin | 3.45 ▲0.15 | 51.65 ▼3.04 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 53.32 ▲2.28 |
Add New Post /wp-admin/post-new.php | 6.04 ▲0.15 | 98.27 ▼7.53 |
Media Library /wp-admin/upload.php | 3.37 ▲0.15 | 37.85 ▲2.34 |
Server storage [IO: ▲1.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 60 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
db_upgraded |
widget_recent-comments |
Browser metrics Passed 4 tests
A check of browser resources used by Custom Card Link
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,817 ▲46 | 13.61 ▼0.77 | 2.03 ▼0.04 | 42.23 ▼1.95 |
Dashboard /wp-admin | 2,215 ▲24 | 5.89 ▲0.01 | 101.60 ▼7.44 | 38.31 ▲1.30 |
Posts /wp-admin/edit.php | 2,104 ▲15 | 2.05 ▲0.03 | 39.74 ▲2.97 | 35.38 ▼4.25 |
Add New Post /wp-admin/post-new.php | 6,196 ▲4,660 | 19.10 ▼4.19 | 921.55 ▲306.82 | 62.53 ▲15.72 |
Media Library /wp-admin/upload.php | 1,403 ▲18 | 4.20 ▲0.04 | 96.86 ▼10.16 | 46.97 ▼0.84 |
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
It is recommended to fix the following
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Everything seems fine, however this is by no means an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 3× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function Ccl_Plugin\\functions\\rest_api\\add_action() in wp-content/plugins/custom-card-link/functions/rest_api.php:10
- > PHP Fatal error
Uncaught Error: Call to undefined function Ccl_Plugin\\functions\\rest_api\\add_action() in wp-content/plugins/custom-card-link/functions/style.php:87
- > PHP Fatal error
Uncaught Error: Call to undefined function Ccl_Plugin\\functions\\rest_api\\add_action() in wp-content/plugins/custom-card-link/functions/rest_api.php:10
- > 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 on the user side
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
1 plugin tags: block
custom-card-link/custom-card-link.php 92% from 13 tests
"Custom Card Link" version 1.0.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
The following require your attention:
- Text Domain: Since WordPress version 4.6 the text domain is optional; if specified, it must be the same as the plugin slug
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected15,044 lines of code in 51 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JSON | 13 | 1 | 0 | 12,051 |
JavaScript | 16 | 33 | 50 | 1,284 |
Sass | 5 | 238 | 0 | 773 |
PHP | 8 | 73 | 187 | 668 |
PO File | 2 | 63 | 72 | 159 |
Markdown | 4 | 40 | 0 | 105 |
CSS | 3 | 0 | 0 | 4 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 24.00 |
▷ Minimum class complexity | 23.00 |
▷ Maximum class complexity | 25.00 |
Average method complexity | 4.54 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 16.00 |
Code structure | ||
---|---|---|
Namespaces | 5 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 4 | 30.77% |
▷ Public methods | 6 | 46.15% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 7 | 53.85% |
Functions | 14 | |
▷ Named functions | 6 | 42.86% |
▷ Anonymous functions | 8 | 57.14% |
Constants | 8 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 8 | 100.00% |
▷ Public constants | 8 | 100.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