Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
You still need to fix the following installer errors
- Install procedure validation failed for this plugin
- > Warning in wp-admin/includes/plugin.php+294
opendir(wp-content/plugins/woocommerce): failed to open dir: No such file or directory
Server metrics [RAM: ▼1.79MB] [CPU: ▼53.46ms] Passed 4 tests
An overview of server-side resources used by Official Cardzware plugin Wordpress for Woocommerce
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.21 ▼1.26 | 6.53 ▼34.97 |
Dashboard /wp-admin | 2.23 ▼1.08 | 6.95 ▼45.74 |
Posts /wp-admin/edit.php | 2.23 ▼1.13 | 7.08 ▼40.18 |
Add New Post /wp-admin/post-new.php | 2.23 ▼3.67 | 8.31 ▼92.93 |
Media Library /wp-admin/upload.php | 2.23 ▼1.01 | 7.59 ▼29.21 |
Server storage [IO: ▲0.52MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin installed successfully
Filesystem: 46 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Official Cardzware plugin Wordpress for Woocommerce: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,823 ▲37 | 14.37 ▼0.04 | 2.00 ▲0.16 | 47.74 ▲4.67 |
Dashboard /wp-admin | 2,226 ▲49 | 5.63 ▲0.12 | 89.49 ▼1.38 | 36.79 ▼7.55 |
Posts /wp-admin/edit.php | 2,126 ▲26 | 2.01 ▼0.01 | 39.89 ▲3.91 | 34.24 ▼0.24 |
Add New Post /wp-admin/post-new.php | 1,701 ▲175 | 22.06 ▼0.98 | 663.52 ▲2.88 | 58.07 ▼1.20 |
Media Library /wp-admin/upload.php | 1,489 ▲86 | 4.25 ▲0.08 | 100.80 ▲2.68 | 44.41 ▼0.97 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
You still need to fix the following
- The plugin did not uninstall gracefully
- > Warning in wp-admin/includes/plugin.php+294
opendir(wp-content/plugins/woocommerce): failed to open dir: No such file or directory
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_recent-comments
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though no errors were found, this is by no means an exhaustive test
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× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cardzware-greeting-cards/admin/includes/class-cardzware-greeting-cards-admin-page.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cardzware-greeting-cards/public/views/cardzware-greeting-cards-public-display.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/cardzware-greeting-cards/public/class-cardzware-greeting-cards-public.php:2
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
10 plugin tags: products, customisation, commissions, integration, celebrations...
cardzware-greeting-cards/cardzware-greeting-cards.php 92% from 13 tests
The main PHP script in "Official Cardzware plugin Wordpress for Woocommerce" version 1.0.14 is automatically included on every request by WordPress
You should first fix the following items:
- Description: The description should be shorter than 140 characters (currently 188 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Everything looks great! No dangerous files found in this plugin13,685 lines of code in 40 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 5 | 810 | 65 | 10,423 |
PHP | 31 | 584 | 844 | 2,872 |
JavaScript | 3 | 41 | 0 | 288 |
SVG | 1 | 0 | 1 | 102 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.28 |
Average class complexity | 10.35 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 64.00 |
Average method complexity | 2.18 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 23.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 23 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 23 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 183 | |
▷ Static methods | 66 | 36.07% |
▷ Public methods | 154 | 84.15% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 29 | 15.85% |
Functions | 10 | |
▷ Named functions | 9 | 90.00% |
▷ Anonymous functions | 1 | 10.00% |
Constants | 104 | |
▷ Global constants | 8 | 7.69% |
▷ Class constants | 96 | 92.31% |
▷ Public constants | 73 | 76.04% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
There are no PNG files in this plugin