Benchmarks
Plugin footprint 82% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.11MB] [CPU: ▼297.70ms] 75% from 4 tests
This is a short check of server-side resources used by AccessPress Social Counter
Please take the time to fix the following items
- CPU: Try to keep total CPU usage under 500.00ms (currently 577.48ms on /wp-admin/admin.php?page=ap-social-counter)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.70 ▲0.19 | 54.46 ▲0.05 |
Dashboard /wp-admin | 3.54 ▲0.14 | 32.53 ▼0.29 |
Posts /wp-admin/edit.php | 3.77 ▲0.13 | 34.96 ▼1.44 |
Add New Post /wp-admin/post-new.php | 7.01 ▲0.04 | 92.66 ▼1,187.93 |
Media Library /wp-admin/upload.php | 3.42 ▲0.12 | 25.91 ▼1.14 |
Check Premium Version /wp-admin/admin.php?page=apsc-premium | 3.22 | 18.40 |
Documentation /wp-admin/admin.php?page=apsc-documentation | 3.22 | 24.69 |
AccessPress Social Counter /wp-admin/admin.php?page=ap-social-counter | 3.69 | 577.48 |
Server storage [IO: ▲6.41MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 97 new files
Database: no new tables, 2 new options
New WordPress options |
---|
widget_apsc_widget |
apsc_settings |
Browser metrics Passed 4 tests
An overview of browser requirements for AccessPress Social Counter
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,809 ▲55 | 15.77 ▼0.29 | 5.88 ▼0.05 | 2.18 ▼0.58 |
Dashboard /wp-admin | 2,933 ▲72 | 6.20 ▲0.01 | 118.38 ▼15.66 | 176.62 ▲13.03 |
Posts /wp-admin/edit.php | 2,733 ▲76 | 3.11 ▲0.04 | 63.73 ▼0.86 | 138.85 ▼2.36 |
Add New Post /wp-admin/post-new.php | 1,787 ▲97 | 22.26 ▲1.65 | 417.38 ▼30.55 | 187.40 ▲27.48 |
Media Library /wp-admin/upload.php | 1,738 ▲43 | 5.55 ▲0.03 | 126.17 ▼14.56 | 206.26 ▲11.94 |
Check Premium Version /wp-admin/admin.php?page=apsc-premium | 4,883 | 17.44 | 619.22 | 256.61 |
Documentation /wp-admin/admin.php?page=apsc-documentation | 1,126 | 7.89 | 273.28 | 154.18 |
AccessPress Social Counter /wp-admin/admin.php?page=ap-social-counter | 2,800 | 14.85 | 418.57 | 187.06 |
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
- Zombie WordPress options were found after uninstall: 2 options
- apsc_settings
- widget_apsc_widget
Smoke tests 25% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Good news, no errors were detected
SRP 0% 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
Almost there! Just fix the following items
- 21× PHP files perform the action of outputting non-empty strings when accessed directly (only 10 are shown):
- > /wp-content/plugins/accesspress-social-counter/inc/backend/widget.php
- > /wp-content/plugins/accesspress-social-counter/inc/frontend/social_network/div/comments.php
- > /wp-content/plugins/accesspress-social-counter/inc/frontend/social_network/div/soundcloud.php
- > /wp-content/plugins/accesspress-social-counter/inc/frontend/social_network/div/twitter.php
- > /wp-content/plugins/accesspress-social-counter/inc/frontend/social_network/extract_count/posts.php
- > /wp-content/plugins/accesspress-social-counter/inc/frontend/social_network/div/dribbble.php
- > /wp-content/plugins/accesspress-social-counter/inc/frontend/social_network/div/instagram.php
- > /wp-content/plugins/accesspress-social-counter/inc/backend/save-settings.php
- > /wp-content/plugins/accesspress-social-counter/inc/frontend/social_network/extract_count/soundcloud.php
- > /wp-content/plugins/accesspress-social-counter/inc/frontend/social_network/extract_count/instagram.php
- 9× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/accesspress-social-counter/inc/backend/boards/display-settings.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/accesspress-social-counter/inc/backend/boards/system-status.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/accesspress-social-counter/inc/backend/boards/about.php:3
- > PHP Fatal error
Uncaught Error: Using $this when not in object context in wp-content/plugins/accesspress-social-counter/inc/frontend/api.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/accesspress-social-counter/inc/backend/boards/social-profiles.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function get_option() in wp-content/plugins/accesspress-social-counter/inc/frontend/font-awesome-icon.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/accesspress-social-counter/inc/backend/boards/cache-settings.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function _e() in wp-content/plugins/accesspress-social-counter/inc/backend/boards/how-to-use.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/accesspress-social-counter/inc/backend/boards/save-button.php:3
- > PHP Fatal error
User-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Please fix the following browser errors
- > GET request to /wp-admin/admin.php?page=apsc-premium
- > Security (warning) in unknown
https://accesspressthemes.com/wordpress-plugins/accesspress-social-pro/ - Mixed Content: The page at 'https://accesspressthemes.com/wordpress-plugins/accesspress-social-pro/' was loaded over HTTPS, but requested an insecure element 'http://demo.accesspressthemes.com/wordpress-plugins/accesspress-social-pro/wp-content/uploads/2019/07/accesspress-social-pro-salespage.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
- > GET request to /wp-admin/admin.php?page=apsc-premium
- > Security (warning) in unknown
https://accesspressthemes.com/wordpress-plugins/accesspress-social-pro/ 787 Mixed Content: The page at 'https://accesspressthemes.com/wordpress-plugins/accesspress-social-pro/' was loaded over HTTPS, but requested an insecure element 'http://demo.accesspressthemes.com/wordpress-plugins/accesspress-social-pro/wp-content/uploads/2019/07/accesspress-social-pro-salespage.jpg'. This request was automatically upgraded to HTTPS, For more information see https://blog.chromium.org/2019/10/no-more-mixed-messages-about-https.html
- > GET request to /wp-admin/admin.php?page=apsc-premium
- > Javascript (severe) in unknown
https://accesspressthemes.com/wordpress-plugins/accesspress-social-pro/ - Access to script at 'https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms' from origin 'https://accesspressthemes.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=apsc-documentation
- > Network (severe)
https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms - Failed to load resource: net::ERR_FAILED
- > GET request to /wp-admin/admin.php?page=apsc-documentation
- > Javascript (severe) in unknown
https://accesspressthemes.com/documentation/accesspress-social-counter/ 500 Access to script at 'https://embed.tawk.to/60cc2bbb65b7290ac63693ec/1f8eollms' from origin 'https://accesspressthemes.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource.
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
Please fix the following attributes:
- Screenshots: These screenshots have no corresponding images in /assets: #3 (Backend Social Profiles Section), #4 (Backend Display Settings Section), #5 (Backend Cache Settings Section)
- Tags: There are too many tags (11 tag instead of maximum 10)
accesspress-social-counter/accesspress-social-counter.php 85% from 13 tests
The main file in "AccessPress Social Counter" v. 1.9.2 serves as a complement to information provided in readme.txt and as the entry point to the plugin
Please make the necessary changes and fix the following:
- Description: Keep the plugin description shorter than 140 characters (currently 143 characters long)
- Text Domain: If you choose to specify the text domain, it must be the same as the plugin slug; optional since WordPress version 4.6
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
Good job! No executable or dangerous file extensions detected27,334 lines of code in 46 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
SVG | 6 | 0 | 12 | 21,660 |
CSS | 4 | 1,078 | 47 | 3,252 |
PHP | 31 | 161 | 117 | 1,686 |
PO File | 2 | 172 | 230 | 423 |
JavaScript | 3 | 30 | 10 | 313 |
PHP code Passed 2 tests
An overview of cyclomatic complexity and code structure
Although this was not an exhaustive test, there were no cyclomatic complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.43 |
Average class complexity | 35.50 |
▷ Minimum class complexity | 9.00 |
▷ Maximum class complexity | 62.00 |
Average method complexity | 3.09 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 19.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 2 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 2 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 33 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 0 | |
▷ Named functions | 0 | 0.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 14 | |
▷ Global constants | 14 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
PNG files should be compressed to save space and minimize bandwidth usage
17 PNG files occupy 1.45MB with 0.87MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/plugin.png | 12.50KB | 5.31KB | ▼ 57.50% |
images/flicker.png | 1.45KB | 0.57KB | ▼ 60.47% |
images/pinterest.png | 2.17KB | 1.25KB | ▼ 42.30% |
images/sc-icon.png | 1.30KB | 0.31KB | ▼ 76.19% |
images/customize.png | 24.05KB | 8.41KB | ▼ 65.05% |