Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Install script ran successfully
Server metrics [RAM: ▲0.28MB] [CPU: ▼0.07ms] Passed 4 tests
A check of server-side resources used by Content Cards
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.26 | 44.57 ▲2.75 |
Dashboard /wp-admin | 3.57 ▲0.27 | 54.50 ▲1.87 |
Posts /wp-admin/edit.php | 3.68 ▲0.33 | 49.13 ▼3.04 |
Add New Post /wp-admin/post-new.php | 6.43 ▲0.55 | 87.88 ▼0.12 |
Media Library /wp-admin/upload.php | 3.49 ▲0.26 | 37.33 ▲0.99 |
Content Cards /wp-admin/options-general.php?page=content-cards-settings | 3.49 | 36.96 |
Server storage [IO: ▲0.21MB] [DB: ▲0.00MB] Passed 3 tests
Input-output and database impact of this plugin
This plugin installed successfully
Filesystem: 20 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Content Cards
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,806 ▲71 | 13.20 ▼1.44 | 1.78 ▼0.16 | 43.20 ▼0.14 |
Dashboard /wp-admin | 2,210 ▲22 | 5.85 ▲0.92 | 112.31 ▲9.36 | 42.98 ▼3.52 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▼0.00 | 37.27 ▼5.70 | 34.71 ▼3.69 |
Add New Post /wp-admin/post-new.php | 1,529 ▲12 | 17.72 ▲0.01 | 662.20 ▼78.48 | 57.83 ▼1.15 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.31 ▲0.09 | 95.74 ▼20.21 | 39.83 ▼8.17 |
Content Cards /wp-admin/options-general.php?page=content-cards-settings | 1,077 | 3.21 | 50.31 | 38.32 |
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
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- can_compress_scripts
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
- widget_theysaidso_widget
- db_upgraded
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Good news, no errors were detected
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× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function the_cc_css_classes() in wp-content/plugins/content-cards/skins/default-dark/content-cards.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function the_cc_css_classes() in wp-content/plugins/content-cards/skins/default/content-cards.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/content-cards/content-cards.php:12
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
These are user-side errors you should fix
- > GET request to /wp-admin/options-general.php?page=content-cards-settings
- > Network (severe)
wp-content/plugins/content-cards/content-cards-upload.js?ver=6.3.1 - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
7 plugin tags: open graph, link cards, rich snippet, snippet, content card...
content-cards/content-cards.php Passed 13 tests
The entry point to "Content Cards" version 0.9.7 is a PHP file that has certain tags in its header comment area
62 characters long description:
Embed any link from the web easily as a beautiful Content Card
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected1,663 lines of code in 12 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 4 | 121 | 306 | 1,289 |
CSS | 5 | 48 | 12 | 207 |
JavaScript | 3 | 6 | 9 | 167 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for 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.35 |
Average class complexity | 63.33 |
▷ Minimum class complexity | 28.00 |
▷ Maximum class complexity | 115.00 |
Average method complexity | 3.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 21.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 72 | |
▷ Static methods | 47 | 65.28% |
▷ Public methods | 52 | 72.22% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 20 | 27.78% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.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
3 PNG files occupy 0.06MB with 0.06MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
skins/default-dark/content-cards-placeholder.png | 23.75KB | 2.38KB | ▼ 89.97% |
skins/default/content-cards-placeholder.png | 20.89KB | 1.93KB | ▼ 90.77% |
content-cards-button.png | 19.94KB | 0.87KB | ▼ 95.64% |