Benchmarks
Plugin footprint 82% 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.29MB] [CPU: ▲229.20ms] 75% from 4 tests
An overview of server-side resources used by Free Social Share Counter Plugin For WordPress - NP Social Share Counter
Please have a look at the following items
- Extra CPU: Extra CPU usage must be kept under 200.00ms (currently 229.20ms on /wp-admin/upload.php)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.64 ▲0.18 | 1,449.70 ▲1,406.47 |
Dashboard /wp-admin | 3.33 ▲0.03 | 56.04 ▲9.35 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 40.89 ▼3.37 |
Add New Post /wp-admin/post-new.php | 4.62 ▼1.27 | 1,001.62 ▲906.45 |
Media Library /wp-admin/upload.php | 3.25 ▲0.03 | 36.08 ▲4.37 |
Server storage [IO: ▲2.31MB] [DB: ▲0.08MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 74 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-comments |
widget_theysaidso_widget |
npsc_settings |
db_upgraded |
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Free Social Share Counter Plugin For WordPress - NP Social Share Counter
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,988 ▲242 | 15.20 ▲0.82 | 14.97 ▲13.28 | 51.72 ▲9.83 |
Dashboard /wp-admin | 2,261 ▲73 | 5.47 ▼0.43 | 131.68 ▲17.73 | 48.87 ▼0.75 |
Posts /wp-admin/edit.php | 2,163 ▲74 | 2.61 ▲0.59 | 48.14 ▲7.20 | 31.72 ▼4.57 |
Add New Post /wp-admin/post-new.php | 6,492 ▲4,955 | 20.47 ▼2.86 | 1,064.76 ▲407.55 | 44.46 ▼10.11 |
Media Library /wp-admin/upload.php | 1,451 ▲60 | 4.81 ▲0.63 | 120.49 ▲19.96 | 46.56 ▲1.63 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.08MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- The uninstall procedure has failed, leaving 7 options in the database
- widget_recent-posts
- widget_recent-comments
- widget_theysaidso_widget
- npsc_settings
- can_compress_scripts
- theysaidso_admin_options
- db_upgraded
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
Even though everything seems fine, this is not an exhaustive test
SRP 50% 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 take a closer look at the following
- 28× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/np-social-share-counter/admin/partials/np-social-share-counter-admin-display.php
- > /wp-content/plugins/np-social-share-counter/public/partials/shortcodes/counter-shortcode.php
- > /wp-content/plugins/np-social-share-counter/admin/partials/tabs/social-settings.php
- > /wp-content/plugins/np-social-share-counter/public/partials/shortcodes/share-shortcode.php
- > /wp-content/plugins/np-social-share-counter/includes/class-np-social-share-counter.php
- > /wp-content/plugins/np-social-share-counter/public/partials/shortcodes/share-count-shortcode.php
- > /wp-content/plugins/np-social-share-counter/admin/partials/tabs/social-counter-settings/counter-settings.php
- > /wp-content/plugins/np-social-share-counter/public/partials/np-social-share-counter-public-display.php
- > /wp-content/plugins/np-social-share-counter/includes/np-counter.php
- > /wp-content/plugins/np-social-share-counter/admin/partials/class-np-social-share-counter-admin-settings.php
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
7 plugin tags: counter, social media, wordpress social share, social, social counter...
np-social-share-counter/np-social-share-counter.php 92% from 13 tests
This is the main PHP file of "Free Social Share Counter Plugin For WordPress - NP Social Share Counter" version 1.0.0, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please make the necessary changes and fix the following:
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 247 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
No dangerous file extensions were detected9,956 lines of code in 38 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 6 | 542 | 61 | 6,993 |
PHP | 29 | 254 | 493 | 2,202 |
SVG | 1 | 0 | 0 | 640 |
JavaScript | 2 | 23 | 63 | 121 |
PHP code Passed 2 tests
An short overview of 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.55 |
Average class complexity | 32.12 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 153.00 |
Average method complexity | 6.19 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 94.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 48 | |
▷ Static methods | 7 | 14.58% |
▷ Public methods | 43 | 89.58% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 5 | 10.42% |
Functions | 3 | |
▷ Named functions | 3 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 48 | |
▷ Global constants | 48 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
18 PNG files occupy 0.35MB with 0.21MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
admin/images/social_share_preview/share_template5.png | 18.41KB | 6.43KB | ▼ 65.09% |
admin/images/counter_preview/counter_template3.png | 17.74KB | 7.31KB | ▼ 58.77% |
admin/images/counter_position/left_position.png | 21.99KB | 8.53KB | ▼ 61.23% |
admin/images/counter_position/inside_button_position.png | 30.09KB | 12.19KB | ▼ 59.50% |
admin/images/counter_preview/counter_template2.png | 21.98KB | 9.05KB | ▼ 58.84% |