Benchmarks
Plugin footprint Passed 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
The plugin installed successfully, without throwing any errors or notices
Server metrics [RAM: ▲1.48MB] [CPU: ▼132.90ms] Passed 4 tests
Analyzing server-side resources used by SNS Count Cache
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.26 ▲1.54 | 42.41 ▲20.86 |
Dashboard /wp-admin | 4.66 ▲1.61 | 53.73 ▲9.90 |
Posts /wp-admin/edit.php | 4.62 ▲1.51 | 53.72 ▲6.92 |
Add New Post /wp-admin/post-new.php | 6.85 ▲1.42 | 93.08 ▼559.12 |
Media Library /wp-admin/upload.php | 4.44 ▲1.44 | 42.34 ▲10.69 |
Help /wp-admin/admin.php?page=scc-help | 4.49 | 36.94 |
Setting /wp-admin/admin.php?page=scc-setting | 5.73 | 71.84 |
Cache Status /wp-admin/admin.php?page=scc-cache-status | 4.53 | 36.79 |
Dashboard /wp-admin/admin.php?page=scc-dashboard | 4.52 | 48.93 |
Share Count /wp-admin/admin.php?page=scc-share-count | 4.67 | 42.54 |
Server storage [IO: ▲5.12MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 84 new files
Database: no new tables, 4 new options
New WordPress options |
---|
scc_share_count_base_offset |
scc_share_count_home |
scc_follow_count_follow |
scc_share_count_rush_offset |
Browser metrics Passed 4 tests
SNS Count Cache: an overview of browser usage
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 4,320 ▲724 | 16.68 ▲1.15 | 11.24 ▲0.85 | 46.46 ▲0.18 |
Dashboard /wp-admin | 3,581 ▲650 | 7.33 ▲1.11 | 165.11 ▲20.25 | 150.10 ▲30.16 |
Posts /wp-admin/edit.php | 2,788 ▲52 | 2.72 ▲0.01 | 64.77 ▲1.48 | 94.07 ▲0.02 |
Add New Post /wp-admin/post-new.php | 1,531 ▼141 | 18.55 ▼0.20 | 361.78 ▲12.71 | 116.01 ▲0.91 |
Media Library /wp-admin/upload.php | 1,859 ▲52 | 5.03 ▼0.02 | 146.62 ▼4.30 | 119.86 ▲1.12 |
Help /wp-admin/admin.php?page=scc-help | 2,029 | 2.89 | 65.15 | 120.09 |
Setting /wp-admin/admin.php?page=scc-setting | 3,398 | 2.57 | 78.37 | 109.06 |
Cache Status /wp-admin/admin.php?page=scc-cache-status | 1,401 | 2.91 | 74.48 | 96.32 |
Dashboard /wp-admin/admin.php?page=scc-dashboard | 1,651 | 3.20 | 103.76 | 107.74 |
Share Count /wp-admin/admin.php?page=scc-share-count | 1,392 | 2.91 | 69.34 | 96.18 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] Passed 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The plugin uninstalled completely, with no zombie files or tables
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=scc-cache-status
- > Notice in wp-content/plugins/sns-count-cache/includes/admin-cache-status.php+283
Trying to access array offset on value of type bool
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
- 136× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'SCC_Crawl_Strategy' not found in wp-content/plugins/sns-count-cache/includes/class-scc-follow-twitter-crawl-strategy.php:33
- > [SCC_Share_Pocket_Crawl_Strategy
:__construct] (line=47)
- > [SCC_Follow_Lazy_Cache_Engine
:initialize] (line=81)
- > [SCC_Common_Data_Export_Engine
:initialize] (line=128)
- > [SCC_Share_Crawl_Strategy_Factory
:create_crawl_strategy] create crawl strategy: Facebook
- > [SCC_Engine
:__construct] (line=75)
- > [SCC_Engine
:__construct] (line=75)
- > [SCC_Share_Lazy_Cache_Engine
:initialize] (line=95)
- > [SCC_Share_Crawl_Strategy_Factory
:create_crawl_strategy] (line=42)
- > [SCC_Share_Crawl_Strategy_Factory
:create_crawl_strategy] create crawl strategy: Pocket
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 88% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
These attributes need to be fixed:
- Donate link: Invalid URI ("")
- Screenshots: Add images for these screenshots: #1 (Dashboard page), #2 (Cache status page), #3 (Share count page), #4 (Hot content page), #5 (Setting page), #6 (Help page)
sns-count-cache/sns-count-cache.php 92% from 13 tests
This is the main PHP file of "SNS Count Cache" version 1.1.3, 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: Please don't use more than 140 characters for the plugin description (currently 305 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | An overview of files in this plugin; executable files are not allowed
Good job! No executable or dangerous file extensions detected12,447 lines of code in 74 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 65 | 3,340 | 5,790 | 11,228 |
PO File | 1 | 389 | 792 | 766 |
CSS | 2 | 54 | 13 | 279 |
JavaScript | 6 | 19 | 16 | 174 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
The following items need your attention
- Method cyclomatic complexity should be reduced to less than 100 (currently 127)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.38 |
Average class complexity | 24.02 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 314.00 |
Average method complexity | 4.13 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 127.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 1 | |
Traits | 0 | |
Classes | 52 | |
▷ Abstract classes | 8 | 15.38% |
▷ Concrete classes | 44 | 84.62% |
▷ Final classes | 2 | 4.55% |
Methods | 411 | |
▷ Static methods | 33 | 8.03% |
▷ Public methods | 341 | 82.97% |
▷ Protected methods | 39 | 9.49% |
▷ Private methods | 31 | 7.54% |
Functions | 24 | |
▷ Named functions | 24 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 221 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 221 | 100.00% |
▷ Public constants | 221 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
6 PNG files occupy 4.36MB with 1.62MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-3.png | 725.58KB | 511.70KB | ▼ 29.48% |
screenshot-1.png | 102.12KB | 63.24KB | ▼ 38.08% |
screenshot-6.png | 982.18KB | 568.80KB | ▼ 42.09% |
screenshot-5.png | 1,448.74KB | 762.90KB | ▼ 47.34% |
screenshot-4.png | 414.87KB | 294.19KB | ▼ 29.09% |