Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Install script ran successfully
Server metrics [RAM: ▲0.46MB] [CPU: ▲0.86ms] Passed 4 tests
Server-side resources used by Social Counter
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.90 ▲0.44 | 38.62 ▼5.52 |
Dashboard /wp-admin | 3.77 ▲0.46 | 45.83 ▼1.16 |
Posts /wp-admin/edit.php | 3.82 ▲0.46 | 49.35 ▲6.47 |
Add New Post /wp-admin/post-new.php | 6.35 ▲0.46 | 94.59 ▲5.29 |
Media Library /wp-admin/upload.php | 3.69 ▲0.46 | 38.70 ▲4.84 |
Social Counter /wp-admin/plugins.php?page=prisna-social-counter-settings | 4.05 | 39.39 |
Server storage [IO: ▲0.53MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
This plugin was installed successfully
Filesystem: 62 new files
Database: no new tables, 7 new options
New WordPress options |
---|
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
widget_prisna-social-counter |
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
Browser metrics Passed 4 tests
Social Counter: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,810 ▲64 | 13.30 ▼1.32 | 1.48 ▼0.31 | 39.87 ▼6.96 |
Dashboard /wp-admin | 2,214 ▲26 | 4.84 ▼0.02 | 109.62 ▼2.55 | 41.90 ▼0.97 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.01 ▼0.05 | 39.93 ▲2.23 | 35.97 ▲2.60 |
Add New Post /wp-admin/post-new.php | 1,531 ▲17 | 17.93 ▲0.22 | 637.69 ▼49.16 | 50.40 ▼12.45 |
Media Library /wp-admin/upload.php | 1,389 ▼2 | 4.16 ▼0.05 | 96.01 ▼1.85 | 42.66 ▼2.28 |
Social Counter /wp-admin/plugins.php?page=prisna-social-counter-settings | 2,801 | 2.35 | 47.57 | 48.33 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- can_compress_scripts
- db_upgraded
- widget_prisna-social-counter
- widget_recent-comments
- widget_recent-posts
- theysaidso_admin_options
Smoke tests 75% 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 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
The following issues need your attention
- 5× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Class 'PrisnaSocialCounterItem' not found in wp-content/plugins/social-counter/classes/admin.class.php:171
- > PHP Fatal error
Uncaught Error: Call to undefined function status_header() in wp-content/plugins/social-counter/uninstall.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/social-counter/social-counter.php:18
- > PHP Fatal error
Uncaught Error: Class 'WP_Widget' not found in wp-content/plugins/social-counter/classes/common.class.php:451
- > PHP Fatal error
Uncaught Error: Class 'PrisnaSocialCounterItem' not found in wp-content/plugins/social-counter/classes/main.class.php:208
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% 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:
- Tags: There are too many tags (17 tag instead of maximum 10)
social-counter/social-counter.php 85% from 13 tests
Analyzing the main PHP file in "Social Counter" version 2.0.5
It is important to fix the following:
- 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: Please keep the plugin description shorter than 140 characters (currently 185 characters long)
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
Everything looks great! No dangerous files found in this plugin7,999 lines of code in 14 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 7 | 1,136 | 21 | 2,316 |
SVG | 2 | 3 | 1 | 2,082 |
JavaScript | 2 | 428 | 48 | 1,937 |
CSS | 2 | 282 | 5 | 1,364 |
PO File | 1 | 85 | 94 | 300 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.39 |
Average class complexity | 11.30 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 65.00 |
Average method complexity | 2.73 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 13.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 33 | |
▷ Abstract classes | 2 | 6.06% |
▷ Concrete classes | 31 | 93.94% |
▷ Final classes | 0 | 0.00% |
Methods | 193 | |
▷ Static methods | 92 | 47.67% |
▷ Public methods | 129 | 66.84% |
▷ Protected methods | 64 | 33.16% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 1 | 100.00% |
Constants | 16 | |
▷ Global constants | 9 | 56.25% |
▷ Class constants | 7 | 43.75% |
▷ Public constants | 7 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
11 PNG files occupy 0.03MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/checkbox.png | 0.24KB | 0.17KB | ▼ 29.03% |
images/fb.png | 1.30KB | 1.60KB | 0.00% |
images/checkbox_parent.png | 0.09KB | 0.10KB | 0.00% |
images/logo_white.png | 2.48KB | 2.10KB | ▼ 15.40% |
images/sprites.png | 17.38KB | 8.54KB | ▼ 50.90% |