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.01MB] [CPU: ▼4.73ms] Passed 4 tests
This is a short check of server-side resources used by Social Charts
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.48 ▲0.02 | 34.70 ▼8.41 |
Dashboard /wp-admin | 3.32 ▲0.02 | 47.83 ▼2.35 |
Posts /wp-admin/edit.php | 3.37 ▲0.01 | 47.77 ▲3.07 |
Add New Post /wp-admin/post-new.php | 5.90 ▲0.01 | 80.73 ▼2.72 |
Media Library /wp-admin/upload.php | 3.24 ▲0.01 | 32.77 ▼5.44 |
Server storage [IO: ▲0.27MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
No storage issues were detected
Filesystem: 34 new files
Database: 2 new tables, 7 new options
New tables |
---|
wp_sc_data |
wp_sc_platforms |
New WordPress options |
---|
db_upgraded |
widget_recent-comments |
widget_recent-posts |
theysaidso_admin_options |
can_compress_scripts |
widget_theysaidso_widget |
sc_settings |
Browser metrics Passed 4 tests
A check of browser resources used by Social Charts
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,926 ▲180 | 13.64 ▼0.65 | 4.78 ▲2.98 | 38.84 ▼6.37 |
Dashboard /wp-admin | 2,227 ▲36 | 4.84 ▼0.03 | 97.27 ▼18.45 | 42.17 ▼2.08 |
Posts /wp-admin/edit.php | 2,110 ▲21 | 2.01 ▼0.03 | 39.80 ▲2.99 | 34.10 ▲1.14 |
Add New Post /wp-admin/post-new.php | 1,553 ▲39 | 18.09 ▲0.67 | 595.25 ▼84.83 | 61.23 ▼8.93 |
Media Library /wp-admin/upload.php | 1,406 ▲21 | 4.22 ▲0.02 | 94.49 ▼4.99 | 42.21 ▲0.79 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
Please fix the following items
- This plugin does not fully uninstall, leaving 2 tables in the database
- wp_sc_data
- wp_sc_platforms
- Zombie WordPress options detected upon uninstall: 7 options
- widget_recent-posts
- can_compress_scripts
- db_upgraded
- theysaidso_admin_options
- sc_settings
- widget_recent-comments
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | It is important to ensure that your PHP files perform no action when accessed directly, respecting the single-responsibility principle
The following issues need your attention
- 2× PHP files perform the action of outputting non-empty strings when accessed directly:
- > /wp-content/plugins/social-charts/public/partials/social-charts-public-display.php
- > /wp-content/plugins/social-charts/admin/partials/social-charts-admin-display.php
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: social-media, social-counter, monitoring, charts, instagram
social-charts/social-charts.php Passed 13 tests
"Social Charts" version 1.0.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
76 characters long description:
Monitor and show your social media follower development as a beautiful chart
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
No dangerous file extensions were detected486 lines of code in 22 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 205 | 550 | 478 |
JavaScript | 4 | 2 | 35 | 6 |
CSS | 3 | 3 | 3 | 2 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.15 |
Average class complexity | 2.00 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.26 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 9 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 9 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 34 | |
▷ Static methods | 2 | 5.88% |
▷ Public methods | 29 | 85.29% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 14.71% |
Functions | 9 | |
▷ Named functions | 9 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 1 | |
▷ Global constants | 1 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
PNG images were not found in this plugin