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
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲0.02MB] [CPU: ▼4.31ms] Passed 4 tests
Analyzing server-side resources used by Posts Social Shares Count
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.52 ▲0.05 | 37.95 ▼0.52 |
Dashboard /wp-admin | 3.35 ▲0.00 | 44.59 ▼14.93 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 582.30 ▲538.53 |
Add New Post /wp-admin/post-new.php | 5.93 ▲0.04 | 90.98 ▼0.18 |
Media Library /wp-admin/upload.php | 3.27 ▲0.04 | 34.85 ▼1.60 |
Server storage [IO: ▲0.02MB] [DB: ▲0.07MB] Passed 3 tests
Filesystem and database footprint
There were no storage issued detected upon installing this plugin
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-posts |
can_compress_scripts |
widget_recent-comments |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Posts Social Shares Count
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,789 ▲43 | 14.22 ▼0.14 | 1.68 ▲0.04 | 38.72 ▲1.23 |
Dashboard /wp-admin | 2,198 ▲18 | 5.53 ▼0.11 | 86.09 ▼3.06 | 38.94 ▼3.59 |
Posts /wp-admin/edit.php | 2,110 ▲13 | 1.99 ▼0.01 | 33.46 ▼0.10 | 33.11 ▼7.01 |
Add New Post /wp-admin/post-new.php | 1,528 ▲2 | 23.12 ▲0.12 | 640.24 ▼51.66 | 48.47 ▼5.37 |
Media Library /wp-admin/upload.php | 1,397 ▼3 | 4.11 ▼0.01 | 100.00 ▼13.79 | 41.87 ▼6.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.07MB] 75% from 4 tests
🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
Smoke tests 75% 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)
Good news, no errors were detected
SRP 50% 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
Almost there! Just fix the following items
- 1× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/posts-social-shares-count/posts-share-count.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser errors were detected
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
10 plugin tags: google plus, shortcodes, social, pinterest, count...
posts-social-shares-count/posts-share-count.php 85% from 13 tests
The principal PHP file in "Posts Social Shares Count" v. 1.4.1 is loaded by WordPress automatically on each request
Please take the time to fix the following:
- Main file name: Name the main plugin file the same as the plugin slug ("posts-social-shares-count.php" instead of "posts-share-count.php")
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 236 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 plugin227 lines of code in 3 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 3 | 79 | 180 | 227 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.25 |
Average class complexity | 11.50 |
▷ Minimum class complexity | 10.00 |
▷ Maximum class complexity | 13.00 |
Average method complexity | 1.78 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 6.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 1 | 50.00% |
Methods | 27 | |
▷ Static methods | 1 | 3.70% |
▷ Public methods | 25 | 92.59% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 2 | 7.41% |
Functions | 10 | |
▷ Named functions | 10 | 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
PNG files should be compressed to save space and minimize bandwidth usage
There are no PNG files in this plugin