Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
This plugin's installer ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼3.88ms] Passed 4 tests
An overview of server-side resources used by Ucard
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 42.87 ▲4.46 |
Dashboard /wp-admin | 3.34 ▲0.03 | 53.90 ▲3.05 |
Posts /wp-admin/edit.php | 3.39 ▲0.02 | 47.13 ▼4.25 |
Add New Post /wp-admin/post-new.php | 5.92 ▲0.03 | 84.15 ▼11.62 |
Media Library /wp-admin/upload.php | 3.26 ▲0.02 | 34.45 ▼2.68 |
Ucard /wp-admin/admin.php?page=genesis-uicard | 3.29 | 33.47 |
Server storage [IO: ▲0.06MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin was installed successfully
Filesystem: 12 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by Ucard
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,872 ▲111 | 13.80 ▼0.47 | 8.81 ▲7.24 | 40.70 ▼2.60 |
Dashboard /wp-admin | 2,195 ▲21 | 5.51 ▼0.17 | 98.31 ▼19.69 | 42.32 ▼3.74 |
Posts /wp-admin/edit.php | 2,103 ▲6 | 1.97 ▼0.02 | 35.06 ▼2.45 | 33.46 ▼0.10 |
Add New Post /wp-admin/post-new.php | 1,526 ▼2 | 23.72 ▲0.49 | 637.20 ▼32.14 | 62.66 ▲10.59 |
Media Library /wp-admin/upload.php | 1,403 ▼0 | 4.21 ▲0.00 | 95.53 ▼9.10 | 44.89 ▼3.87 |
Ucard /wp-admin/admin.php?page=genesis-uicard | 1,354 | 1.65 | 25.92 | 28.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_theysaidso_widget
- widget_recent-posts
- widget_recent-comments
- db_upgraded
- theysaidso_admin_options
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/admin.php?page=genesis-uicard
- > Notice in wp-content/plugins/ucard/admin/panel.php+141
Trying to access array offset on value of type bool
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
Please take a closer look at the following
- 9× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/ucard/admin/office.php:9
- > PHP Warning
Use of undefined constant ucard_inc - assumed 'ucard_inc' (this will throw an Error in a future version of PHP) in wp-content/plugins/ucard/ucard.php on line 9
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/ucard/admin/panel.php:17
- > PHP Warning
require_once(ucard_incoffice.php): failed to open stream: No such file or directory in wp-content/plugins/ucard/ucard.php on line 9
- > PHP Fatal error
require_once(): Failed opening required 'ucard_incoffice.php' (include_path='.:/usr/share/php') in wp-content/plugins/ucard/ucard.php on line 9
- > PHP Warning
Use of undefined constant ucard_loop - assumed 'ucard_loop' (this will throw an Error in a future version of PHP) in wp-content/plugins/ucard/loops/index.php on line 9
- > PHP Fatal error
require_once(): Failed opening required 'ucard_looptemp1.php' (include_path='.:/usr/share/php') in wp-content/plugins/ucard/loops/index.php on line 9
- > PHP Warning
Use of undefined constant ucard_img - assumed 'ucard_img' (this will throw an Error in a future version of PHP) in wp-content/plugins/ucard/admin/panel.php on line 12
- > PHP Warning
require_once(ucard_looptemp1.php): failed to open stream: No such file or directory in wp-content/plugins/ucard/loops/index.php on line 9
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need your attention:
- Screenshots: No descriptions were found for these screenshots #1, #2, #3, #4, #5 in ucard/assets to your readme.txt
ucard/plugin.php 92% from 13 tests
This is the main PHP file of "Ucard" version 1.0.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
It is important to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("ucard.php" instead of "plugin.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Good job! No executable or dangerous file extensions detected1,354 lines of code in 11 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 2 | 6 | 21 | 588 |
PHP | 6 | 104 | 78 | 582 |
SVG | 1 | 1 | 1 | 135 |
JavaScript | 2 | 3 | 13 | 49 |
PHP code Passed 2 tests
Cyclomatic complexity and code structure are the fingerprint of this plugin
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 20 | |
▷ Named functions | 20 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 6 | |
▷ Global constants | 6 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There were not PNG files found in your plugin