Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
This plugin's installer ran successfully
Server metrics [RAM: ▲0.68MB] [CPU: ▲4.26ms] Passed 4 tests
A check of server-side resources used by WP Cards
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.15 ▲0.69 | 51.52 ▲8.90 |
Dashboard /wp-admin | 4.03 ▲0.72 | 55.75 ▲0.51 |
Posts /wp-admin/edit.php | 4.08 ▲0.73 | 57.98 ▲6.60 |
Add New Post /wp-admin/post-new.php | 6.54 ▲0.66 | 100.46 ▲1.03 |
Media Library /wp-admin/upload.php | 3.89 ▲0.66 | 44.44 ▲8.92 |
WP-Cards /wp-admin/options-general.php?page=wp_cards_options | 3.72 | 30.32 |
Server storage [IO: ▲3.00MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
There were no storage issued detected upon installing this plugin
Filesystem: 53 new files
Database: no new tables, 17 new options
New WordPress options |
---|
widget_wp_cards_featurette_by_category_widget |
widget_recent-posts |
widget_wp_cards_builder_widget |
widget_wp_cards_jumbotron_register_widget |
widget_wp_cards_jumbotron_banner_widget |
widget_recent-comments |
widget_wp_cards_category_carousel_widget |
widget_wp_cards_spotlight_widget |
theysaidso_admin_options |
widget_theysaidso_widget |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for WP Cards
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,795 ▲34 | 14.72 ▲0.72 | 1.76 ▼0.12 | 42.01 ▼1.98 |
Dashboard /wp-admin | 2,196 ▲19 | 5.59 ▲0.02 | 91.53 ▼1.21 | 43.47 ▲0.36 |
Posts /wp-admin/edit.php | 2,107 ▲7 | 1.96 ▼0.07 | 39.24 ▲4.07 | 35.36 ▼3.57 |
Add New Post /wp-admin/post-new.php | 1,529 ▲3 | 23.20 ▼0.50 | 602.38 ▼64.47 | 51.04 ▼4.71 |
Media Library /wp-admin/upload.php | 1,404 ▲4 | 4.22 ▲0.13 | 100.39 ▼13.55 | 43.87 ▼5.09 |
WP-Cards /wp-admin/options-general.php?page=wp_cards_options | 923 | 2.02 | 24.57 | 32.32 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
You still need to fix the following
- This plugin did not uninstall successfully, leaving 17 options in the database
- widget_wp_cards_multi_view_widget
- widget_wp_cards_jumbotron_register_widget
- widget_wp_cards_dynamic_slide_carousel_widget
- widget_wp_cards_jumbotron_banner_widget
- widget_theysaidso_widget
- widget_recent-comments
- can_compress_scripts
- theysaidso_admin_options
- widget_wp_cards_featurette_by_category_widget
- db_upgraded
- ...
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 2 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=wp_cards_options
- > Notice in wp-content/plugins/wp-cards/wp-cards-plugin-options.php+86
Undefined index: action
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please fix the following items
- 36× PHP files trigger errors when accessed directly with GET requests (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-cards/cards/card-jumbotron-register.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/wp-cards/templates/loop-featurette.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/wp-cards/templates/loop-list.php:3
- > PHP Warning
extract() expects parameter 1 to be array, null given in wp-content/plugins/wp-cards/sample-files/home.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/wp-cards/cards/card-dynamic-slide-carousel.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/wp-cards/templates/loop-tile.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_cards_get_view() in wp-content/plugins/wp-cards/templates/loop.php:2
- > PHP Warning
extract() expects parameter 1 to be array, null given in wp-content/plugins/wp-cards/wp-cards-template.php on line 8
- > PHP Fatal error
Uncaught Error: Call to undefined function have_posts() in wp-content/plugins/wp-cards/templates/loop-grid.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function the_ID() in wp-content/plugins/wp-cards/templates/excerpt-featurette.php:1
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== wp-cards ===
) - Screenshots: Please add images for these screenshots: #1 (Example of a “Registration” Jumbotron card), #2 (Example of a “Search” Jumbotron card), #3 (Example of a “Banner” Jumbotron card), #4 (Example of a “Carousel” card), #5 (Example of a “Spotlight” card), #6 (Example of a “Category Carousel” card), #7 (Example of a “Featurette by Category” card), #8 (Example of a “Latest Post Grid” card)
wp-cards/wp-cards.php 92% from 13 tests
The entry point to "WP Cards" version 1.5.1 is a PHP file that has certain tags in its header comment area
Please make the necessary changes and fix the following:
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin4,209 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 35 | 463 | 198 | 3,286 |
CSS | 2 | 77 | 90 | 921 |
JavaScript | 1 | 0 | 0 | 2 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.21 |
Average class complexity | 20.08 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 81.00 |
Average method complexity | 5.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 51.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 12 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 12 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 49 | |
▷ Static methods | 1 | 2.04% |
▷ Public methods | 47 | 95.92% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 4.08% |
Functions | 26 | |
▷ Named functions | 26 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
9 PNG files occupy 2.61MB with 1.54MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-5.png | 273.24KB | 104.20KB | ▼ 61.87% |
screenshot-7.png | 328.93KB | 124.60KB | ▼ 62.12% |
screenshot-8.png | 53.82KB | 21.09KB | ▼ 60.82% |
screenshot-6.png | 334.76KB | 113.79KB | ▼ 66.01% |
screenshot-4.png | 499.22KB | 276.31KB | ▼ 44.65% |