Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
The following installer errors require your attention
- This plugin did not install gracefully
- > Error in wp-content/plugins/social-way-by-cadienvan-projects/index.php+21
Uncaught Error: Call to undefined function mysql_result() in wp-content/plugins/social-way-by-cadienvan-projects/index.php:21
Stack trace:
#0 wp-admin/includes/plugin.php(2318): include_once()
#1 wp-admin/includes/plugin.php(663): plugin_sandbox_scrape()
Server metrics [RAM: ▲0.00MB] [CPU: ▲0.40ms] Passed 4 tests
Analyzing server-side resources used by Social Way By Cadienvan Projects
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.46 ▲0.00 | 49.39 ▲6.20 |
Dashboard /wp-admin | 3.31 ▲0.00 | 52.29 ▼2.23 |
Posts /wp-admin/edit.php | 3.36 ▲0.00 | 51.28 ▲0.25 |
Add New Post /wp-admin/post-new.php | 5.89 ▲0.00 | 97.53 ▲7.29 |
Media Library /wp-admin/upload.php | 3.23 ▲0.00 | 36.44 ▼2.62 |
Server storage [IO: ▲0.37MB] [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: 47 new files
Database: no new tables, 6 new options
New WordPress options |
---|
can_compress_scripts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-posts |
Browser metrics Passed 4 tests
Social Way By Cadienvan Projects: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,800 ▼11 | 13.35 ▼0.87 | 2.21 ▲0.03 | 43.30 ▼1.03 |
Dashboard /wp-admin | 2,206 ▲3 | 4.84 ▼0.95 | 109.20 ▲8.16 | 38.62 ▼4.06 |
Posts /wp-admin/edit.php | 2,092 ▲3 | 2.01 ▼0.04 | 40.11 ▲2.96 | 36.89 ▲3.00 |
Add New Post /wp-admin/post-new.php | 1,533 ▼0 | 23.68 ▲0.40 | 665.98 ▲10.11 | 83.02 ▲32.63 |
Media Library /wp-admin/upload.php | 1,385 ▲3 | 4.25 ▲0.03 | 95.26 ▼5.80 | 39.86 ▼0.94 |
Uninstaller [IO: ✅] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- This plugin did not uninstall successfully, leaving 6 options in the database
- theysaidso_admin_options
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following items
- 3× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/social-way-by-cadienvan-projects/skype.php
- > /wp-content/plugins/social-way-by-cadienvan-projects/googleplus.php
- > /wp-content/plugins/social-way-by-cadienvan-projects/linkedin.php
- 1× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Notice
Undefined index: lang in wp-content/plugins/social-way-by-cadienvan-projects/linkedin.php on line 3
- > PHP Notice
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
These attributes need to be fixed:
- Plugin Name: "Plugin Name" should be replaced with the name of your plugin on the first line (
=== social-way-by-cadienvan-projects ===
) - Tags: Please delete some tags, you are using 15 tag instead of maximum 10
social-way-by-cadienvan-projects/index.php 77% from 13 tests
The main PHP file in "Social Way By Cadienvan Projects" ver. 1.0 adds more information about the plugin and also serves as the entry point for this plugin
You should first fix the following items:
- Main file name: The principal plugin file should be the same as the plugin slug ("social-way-by-cadienvan-projects.php" instead of "index.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 322 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Success! There were no dangerous files found in this plugin4,396 lines of code in 15 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 369 | 274 | 3,756 |
CSS | 7 | 132 | 0 | 585 |
JavaScript | 1 | 7 | 3 | 55 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 75.80 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 198.00 |
Average method complexity | 4.86 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 57.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 5 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 5 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 97 | |
▷ Static methods | 1 | 1.03% |
▷ Public methods | 81 | 83.51% |
▷ Protected methods | 16 | 16.49% |
▷ Private methods | 0 | 0.00% |
Functions | 60 | |
▷ Named functions | 59 | 98.33% |
▷ Anonymous functions | 1 | 1.67% |
Constants | 56 | |
▷ Global constants | 56 | 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
30 PNG files occupy 0.08MB with 0.02MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
list.png | 1.90KB | 1.75KB | ▼ 7.56% |
check_radio_sheet.png | 4.24KB | 0.99KB | ▼ 76.72% |
list2.png | 0.46KB | 0.35KB | ▼ 24.79% |
icon.png | 0.86KB | 1.06KB | 0.00% |
skype.png | 1.63KB | 1.41KB | ▼ 13.50% |