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
Install script ran successfully
Server metrics [RAM: ▲0.02MB] [CPU: ▼12.74ms] Passed 4 tests
This is a short check of server-side resources used by Viralism
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.03 | 43.55 ▼6.74 |
Dashboard /wp-admin | 3.34 ▼0.00 | 51.97 ▼16.72 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.80 ▼8.27 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 87.49 ▼19.21 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 42.79 ▲2.62 |
Server storage [IO: ▲2.11MB] [DB: ▲0.01MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 65 new files
Database: 4 new tables, 6 new options
New tables |
---|
wp_vio_pinterest |
wp_vio_content |
wp_vio_content_social |
wp_vio_twitter |
New WordPress options |
---|
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Viralism
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,835 ▲74 | 13.49 ▼0.78 | 2.57 ▲0.83 | 43.55 ▲3.23 |
Dashboard /wp-admin | 2,241 ▲61 | 6.03 ▲0.42 | 90.52 ▼4.71 | 37.72 ▼3.44 |
Posts /wp-admin/edit.php | 2,149 ▲49 | 2.60 ▲0.57 | 34.92 ▼0.63 | 34.90 ▼0.68 |
Add New Post /wp-admin/post-new.php | 1,723 ▲197 | 22.88 ▼0.51 | 792.43 ▲95.96 | 50.92 ▼2.54 |
Media Library /wp-admin/upload.php | 1,437 ▲37 | 4.62 ▲0.44 | 101.10 ▼1.64 | 76.02 ▲29.66 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% 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 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
The following issues need your attention
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/viralism/inc/footer.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_basename() in wp-content/plugins/viralism/index.php:15
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 90% 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: These screenshots do not have images: #1 (Dashboard), #2 (Social Accounts), #3 (Trending Search), #4 (Error Log), #5 (Upgrade Plugin)
viralism/index.php 85% from 13 tests
The main file in "Viralism" v. 1.0.0 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("viralism.php" instead of "index.php")
- Text Domain: The text domain should only use lowercase characters and dashes
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected16,459 lines of code in 26 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 3 | 0 | 0 | 10,217 |
CSS | 7 | 274 | 87 | 5,481 |
JavaScript | 8 | 18 | 47 | 519 |
PHP | 8 | 7 | 10 | 242 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Great job! No cyclomatic complexity issues were detected in this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.09 |
Average class complexity | 1.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 1.00 |
Average method complexity | 1.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 1.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 | 3 | |
▷ Static methods | 3 | 100.00% |
▷ Public methods | 3 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 5 | |
▷ Global constants | 5 | 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
20 PNG files occupy 0.06MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/index.png | 0.50KB | 0.42KB | ▼ 15.92% |
images/1default_twitter.png | 8.25KB | 2.55KB | ▼ 69.12% |
images/--default_facebook.png | 4.32KB | 1.09KB | ▼ 74.77% |
images/br_down.png | 3.14KB | 0.32KB | ▼ 89.74% |
images/computer-index.png | 3.62KB | 1.15KB | ▼ 68.22% |