Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▼0.00MB] [CPU: ▼11.46ms] Passed 4 tests
An overview of server-side resources used by Postcard Social Networking Plugin for WordPress
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 36.32 ▼11.26 |
Dashboard /wp-admin | 3.31 ▼0.03 | 49.42 ▼17.43 |
Posts /wp-admin/edit.php | 3.36 ▲0.01 | 53.04 ▼1.26 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.01 | 86.17 ▼15.87 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 37.66 ▲3.66 |
My postcards /wp-admin/admin.php?page=postcard_listing | 3.26 | 34.74 |
Postcard /wp-admin/admin.php?page=postcard | 3.27 | 27.57 |
Server storage [IO: ▲0.45MB] [DB: ▲0.08MB] Passed 3 tests
Filesystem and database footprint
No storage issues were detected
Filesystem: 39 new files
Database: 5 new tables, 7 new options
New tables |
---|
wp_pc_tags_posts |
wp_pc_network_posts |
wp_pc_postcards |
wp_pc_tags |
wp_pc_auth_tokens |
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
ca.bitwit.postcard/social-archive-install |
widget_recent-comments |
widget_recent-posts |
widget_theysaidso_widget |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Postcard Social Networking Plugin for WordPress
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,933 ▲187 | 13.96 ▼0.42 | 7.60 ▲5.60 | 40.11 ▼2.66 |
Dashboard /wp-admin | 2,241 ▲56 | 5.87 ▼0.03 | 108.46 ▼7.60 | 81.05 ▲37.92 |
Posts /wp-admin/edit.php | 2,124 ▲35 | 1.98 ▼0.05 | 39.95 ▲4.69 | 34.47 ▼0.32 |
Add New Post /wp-admin/post-new.php | 1,546 ▲24 | 22.97 ▼0.30 | 753.47 ▲99.55 | 63.10 ▲12.15 |
Media Library /wp-admin/upload.php | 1,416 ▲28 | 4.18 ▼0.05 | 101.96 ▲1.06 | 86.25 ▲40.99 |
My postcards /wp-admin/admin.php?page=postcard_listing | 877 | 2.02 | 25.73 | 25.66 |
Postcard /wp-admin/admin.php?page=postcard | 1,015 | 1.75 | 30.88 | 35.86 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
These items require your attention
- This plugin does not fully uninstall, leaving 5 tables in the database
- wp_pc_auth_tokens
- wp_pc_tags
- wp_pc_tags_posts
- wp_pc_network_posts
- wp_pc_postcards
- This plugin does not fully uninstall, leaving 7 options in the database
- widget_theysaidso_widget
- db_upgraded
- can_compress_scripts
- ca.bitwit.postcard/social-archive-install
- theysaidso_admin_options
- widget_recent-posts
- widget_recent-comments
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | SRP (Single-Responsibility Principle) - PHP files must act as libraries and never output text or perform any action when accessed directly in a browser
Please take a closer look at the following
- 1× PHP files output text when accessed directly:
- > /wp-content/plugins/postcard-social/postcard-core/templates/post-template-custom-default.php
- 13× PHP files trigger server errors when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function postcard_style_post_message() in wp-content/plugins/postcard-social/postcard-core/templates/post-template-default.php:1
- > PHP Notice
Trying to get property 'message' of non-object in wp-content/plugins/postcard-social/postcard-core/templates/postcard-meta.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/postcard-social/postcard-core/admin-pages/settings.php:201
- > PHP Fatal error
Uncaught Error: Call to undefined function postcard_get_permalink() in wp-content/plugins/postcard-social/postcard-core/meta-templates/postcard-meta.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function postcard_get_permalink() in wp-content/plugins/postcard-social/postcard-core/templates/postcard-meta.php:3
- > PHP Notice
Undefined variable: postcard in wp-content/plugins/postcard-social/postcard-core/templates/postcard-meta.php on line 1
- > PHP Notice
Undefined variable: postcard in wp-content/plugins/postcard-social/postcard-core/meta-templates/postcard-meta.php on line 1
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/postcard-social/postcard.php:14
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/postcard-social/postcard-core/startup.php:86
- > PHP Fatal error
Uncaught Error: Call to undefined function get_bloginfo() in wp-content/plugins/postcard-social/postcard-core/meta-templates/postcard-meta-page.php:2
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
These are user-side errors you should fix
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=postcard
- > Network (severe)
wp-content/plugins/postcard-social/postcard-core/img/admin-icon.png - Failed to load resource: the server responded with a status of 404 (Not Found)
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
4 plugin tags: feed, networking, postcard, social
postcard-social/postcard.php 92% from 13 tests
The principal PHP file in "Postcard Social Networking Plugin for WordPress" v. 1.4.1 is loaded by WordPress automatically on each request
Please make the necessary changes and fix the following:
- Main file name: Please rename the main PHP file in this plugin to the plugin slug ("postcard-social.php" instead of "postcard.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of programming languages used in this plugin; dangerous file extensions are not allowed
There were no executable files found in this plugin6,797 lines of code in 27 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 3 | 1,084 | 2,797 | 3,851 |
PHP | 14 | 210 | 64 | 1,623 |
CSS | 3 | 23 | 180 | 792 |
Sass | 1 | 31 | 6 | 217 |
CoffeeScript | 2 | 33 | 19 | 204 |
SVG | 1 | 0 | 0 | 65 |
HTML | 1 | 6 | 3 | 22 |
JSON | 1 | 0 | 0 | 13 |
Ruby | 1 | 5 | 5 | 10 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.30 |
Average class complexity | 30.00 |
▷ Minimum class complexity | 30.00 |
▷ Maximum class complexity | 30.00 |
Average method complexity | 3.23 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 8.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 13 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 1 | 7.69% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 12 | 92.31% |
Functions | 43 | |
▷ Named functions | 43 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 2 | |
▷ Global constants | 2 | 100.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
4 PNG files occupy 0.01MB with 0.00MB in potential savings
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
postcard-core/img/gallery-next.png | 1.18KB | 0.24KB | ▼ 79.95% |
postcard-core/img/gallery-prev.png | 1.20KB | 0.25KB | ▼ 78.98% |
postcard-core/img/user-blank.png | 3.10KB | 1.60KB | ▼ 48.39% |
postcard-core/img/video-play-button.png | 1.96KB | 1.38KB | ▼ 29.70% |