Benchmarks
Plugin footprint 65% from 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: ▲6.37MB] [CPU: ▼230.23ms] 75% from 4 tests
Server-side resources used by NextScripts: Social Networks Auto-Poster
Please fix the following
- Extra RAM: The extra memory usage must be under 5MB (currently 6.37MB on /wp-admin/admin.php?page=nxs-help)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.95 ▲6.44 | 157.58 ▲103.72 |
Dashboard /wp-admin | 9.80 ▲6.40 | 105.29 ▲55.67 |
Posts /wp-admin/edit.php | 10.02 ▲6.39 | 93.98 ▲46.12 |
Add New Post /wp-admin/post-new.php | 13.28 ▲6.31 | 167.52 ▼1,109.75 |
Media Library /wp-admin/upload.php | 9.69 ▲6.39 | 115.14 ▲87.04 |
Settings /wp-admin/admin.php?page=nxssnap-settings | 9.68 | 88.48 |
Reposter /wp-admin/admin.php?page=nxssnap-reposter | 9.71 | 85.44 |
Help/Support /wp-admin/admin.php?page=nxs-help | 9.68 | 86.44 |
Server storage [IO: ▲3.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 234 new files
Database: 2 new tables, 2 new options
New tables |
---|
wp_nxs_log |
wp_nxs_query |
New WordPress options |
---|
nxs_query_db_table_version |
nxs_log_db_table_version |
Browser metrics Passed 4 tests
Checking browser requirements for NextScripts: Social Networks Auto-Poster
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,986 ▲232 | 15.89 ▲1.11 | 17.10 ▲8.23 | 4.19 ▲1.07 |
Dashboard /wp-admin | 2,961 ▲100 | 6.00 ▼0.16 | 176.06 ▲22.83 | 217.79 ▲55.26 |
Posts /wp-admin/edit.php | 2,772 ▲81 | 3.16 ▼0.07 | 88.26 ▲16.03 | 204.38 ▲43.71 |
Add New Post /wp-admin/post-new.php | 2,056 ▲391 | 23.22 ▲2.04 | 657.05 ▲103.71 | 311.94 ▲131.39 |
Media Library /wp-admin/upload.php | 1,771 ▲73 | 5.55 ▲0.11 | 204.79 ▲43.36 | 310.18 ▲107.59 |
Settings /wp-admin/admin.php?page=nxssnap-settings | 3,770 | 3.91 | 128.91 | 361.47 |
Reposter /wp-admin/admin.php?page=nxssnap-reposter | 2,763 | 4.26 | 125.84 | 234.96 |
Help/Support /wp-admin/admin.php?page=nxs-help | 2,060 | 3.32 | 99.53 | 245.03 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
The following items require your attention
- The plugin did not uninstall successfully, leaving 2 tables in the database
- wp_nxs_log
- wp_nxs_query
- This plugin does not fully uninstall, leaving 2 options in the database
- nxs_query_db_table_version
- nxs_log_db_table_version
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
- 38× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'nxs_snapClassNT' not found in wp-content/plugins/social-networks-auto-poster-facebook-twitter-g/inc-cl/di.php:5
- > PHP Fatal error
Uncaught Error: Class 'nxs_snapClassNT' not found in wp-content/plugins/social-networks-auto-poster-facebook-twitter-g/inc-cl/yt.php:5
- > PHP Fatal error
Uncaught Error: Class 'nxs_snapClassNT' not found in wp-content/plugins/social-networks-auto-poster-facebook-twitter-g/inc-cl/lj.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/social-networks-auto-poster-facebook-twitter-g/inc/nxs_functions_wp.php:27
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/social-networks-auto-poster-facebook-twitter-g/inc-cl/wp.api.php:5
- > PHP Fatal error
Uncaught Error: Class 'nxs_snapClassNT' not found in wp-content/plugins/social-networks-auto-poster-facebook-twitter-g/inc-cl/gp.php:21
- > PHP Fatal error
Uncaught Error: Class 'nxs_snapClassNT' not found in wp-content/plugins/social-networks-auto-poster-facebook-twitter-g/inc-cl/ok.php:5
- > PHP Fatal error
Uncaught Error: Class 'nxs_snapClassNT' not found in wp-content/plugins/social-networks-auto-poster-facebook-twitter-g/inc-cl/sc.php:5
- > PHP Fatal error
Uncaught Error: Class 'nxs_snapClassNT' not found in wp-content/plugins/social-networks-auto-poster-facebook-twitter-g/inc-cl/yo.php:4
- > PHP Fatal error
Uncaught Error: Class 'nxs_snapClassNT' not found in wp-content/plugins/social-networks-auto-poster-facebook-twitter-g/inc-cl/mc.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine on the user side
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
Please fix the following attributes:
- Tags: There are too many tags (61 tag instead of maximum 10)
social-networks-auto-poster-facebook-twitter-g/NextScripts_SNAP.php 85% from 13 tests
This is the main PHP file of "NextScripts: Social Networks Auto-Poster" version 4.3.25, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
Please take the time to fix the following:
- Description: The description should be shorter than 140 characters (currently 148 characters long)
- Main file name: The principal plugin file should be the same as the plugin slug ("social-networks-auto-poster-facebook-twitter-g.php" instead of "NextScripts_SNAP.php")
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Success! There were no dangerous files found in this plugin18,936 lines of code in 101 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 84 | 2,384 | 2,230 | 13,877 |
PO File | 3 | 792 | 1,117 | 2,242 |
JavaScript | 6 | 416 | 335 | 1,619 |
CSS | 8 | 178 | 60 | 1,198 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please tend to the following items
- Cyclomatic complexity of methods has to be reduced to less than 100 (currently 203)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 53.78 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 657.00 |
Average method complexity | 7.81 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 203.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 115 | |
▷ Abstract classes | 5 | 4.35% |
▷ Concrete classes | 110 | 95.65% |
▷ Final classes | 0 | 0.00% |
Methods | 904 | |
▷ Static methods | 64 | 7.08% |
▷ Public methods | 852 | 94.25% |
▷ Protected methods | 2 | 0.22% |
▷ Private methods | 50 | 5.53% |
Functions | 220 | |
▷ Named functions | 220 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 10 | |
▷ Global constants | 9 | 90.00% |
▷ Class constants | 1 | 10.00% |
▷ Public constants | 1 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
124 PNG files occupy 0.72MB with 0.25MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/ip-bg.png | 11.29KB | 5.63KB | ▼ 50.09% |
img/qIcon.png | 0.57KB | 0.43KB | ▼ 24.91% |
img/cbrb.png | 0.18KB | 0.12KB | ▼ 31.72% |
img/mc16.png | 1.73KB | 0.90KB | ▼ 47.68% |
img/vk-bg.png | 7.23KB | 6.08KB | ▼ 15.97% |