Benchmarks
Plugin footprint 64% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Install script ran successfully
Server metrics [RAM: ▲6.30MB] [CPU: ▲37.13ms] 50% from 4 tests
A check of server-side resources used by NextScripts: Social Networks Auto-Poster
It is recommended to improve the following
- CPU: Try to keep total CPU usage under 500.00ms (currently 1,152.06ms on /wp-admin/admin.php?page=nxs-addons)
- Extra RAM: Extra memory usage should kept under 5MB (currently 6.30MB on /wp-admin/admin.php?page=nxssnap-settings)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 9.77 ▲6.31 | 78.36 ▲38.26 |
Dashboard /wp-admin | 9.62 ▲6.28 | 86.56 ▲22.30 |
Posts /wp-admin/edit.php | 9.67 ▲6.31 | 93.95 ▲42.04 |
Add New Post /wp-admin/post-new.php | 12.23 ▲6.34 | 137.14 ▲49.27 |
Media Library /wp-admin/upload.php | 9.55 ▲6.32 | 80.88 ▲45.90 |
Addons /wp-admin/admin.php?page=nxs-addons | 9.54 | 1,152.06 |
Reposter /wp-admin/admin.php?page=nxssnap-reposter | 9.57 | 80.58 |
Help/Support /wp-admin/admin.php?page=nxs-help | 9.53 | 74.36 |
Settings /wp-admin/admin.php?page=nxssnap-settings | 9.54 | 77.08 |
Server storage [IO: ▲5.68MB] [DB: ▲0.01MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 243 new files
Database: 2 new tables, 8 new options
New tables |
---|
wp_nxs_query |
wp_nxs_log |
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
nxs_log_db_table_version |
can_compress_scripts |
widget_recent-posts |
nxs_query_db_table_version |
widget_recent-comments |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
An overview of browser requirements for NextScripts: Social Networks Auto-Poster
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,941 ▲169 | 13.51 ▼0.81 | 7.32 ▲5.40 | 34.96 ▼9.10 |
Dashboard /wp-admin | 2,251 ▲71 | 5.65 ▼0.01 | 91.10 ▼10.89 | 81.52 ▲35.74 |
Posts /wp-admin/edit.php | 2,169 ▲69 | 2.04 ▲0.06 | 37.78 ▲1.54 | 33.89 ▼2.18 |
Add New Post /wp-admin/post-new.php | 1,796 ▲270 | 21.34 ▼1.66 | 599.99 ▼58.31 | 46.11 ▼14.31 |
Media Library /wp-admin/upload.php | 1,459 ▲59 | 4.23 ▲0.04 | 97.27 ▲1.81 | 80.45 ▲39.21 |
Addons /wp-admin/admin.php?page=nxs-addons | 1,487 | 2.60 | 48.68 | 94.75 |
Reposter /wp-admin/admin.php?page=nxssnap-reposter | 2,234 | 3.13 | 59.57 | 94.11 |
Help/Support /wp-admin/admin.php?page=nxs-help | 1,579 | 2.48 | 49.16 | 74.26 |
Settings /wp-admin/admin.php?page=nxssnap-settings | 2,841 | 2.93 | 59.79 | 112.42 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 50% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- The uninstall procedure failed, leaving 2 tables in the database
- wp_nxs_log
- wp_nxs_query
- The uninstall procedure has failed, leaving 8 options in the database
- widget_recent-comments
- theysaidso_admin_options
- nxs_query_db_table_version
- widget_theysaidso_widget
- can_compress_scripts
- nxs_log_db_table_version
- widget_recent-posts
- db_upgraded
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
The smoke test was a success, however most plugin functionality was not tested
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
Please fix the following
- 38× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > 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: Class 'nxs_snapClassNT' not found in wp-content/plugins/social-networks-auto-poster-facebook-twitter-g/inc-cl/tr.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: Class 'nxs_snapClassNT' not found in wp-content/plugins/social-networks-auto-poster-facebook-twitter-g/inc-cl/vb.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/st.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/xi.php:5
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/social-networks-auto-poster-facebook-twitter-g/inc/nxs_class_snap.php on line 1345
- > PHP Fatal error
Uncaught Error: Class 'nxs_snapClassNT' not found in wp-content/plugins/social-networks-auto-poster-facebook-twitter-g/inc-cl/pn.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/ig.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-cl/wp.api.php:5
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration 90% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
Attributes that need to be fixed:
- Tags: There are too many tags (59 tag instead of maximum 10)
social-networks-auto-poster-facebook-twitter-g/NextScripts_SNAP.php 85% from 13 tests
"NextScripts: Social Networks Auto-Poster" version 4.4.3's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
Please take the time to fix the following:
- 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")
- Description: The description should be shorter than 140 characters (currently 144 characters long)
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Success! There were no dangerous files found in this plugin17,979 lines of code in 99 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 80 | 2,199 | 1,806 | 12,904 |
PO File | 3 | 792 | 1,117 | 2,242 |
JavaScript | 7 | 416 | 341 | 1,620 |
CSS | 9 | 182 | 67 | 1,213 |
PHP code 50% from 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
Please fix the following
- Method cyclomatic complexity has to be reduced to less than 100 (currently 211)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.50 |
Average class complexity | 53.41 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 662.00 |
Average method complexity | 7.82 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 211.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 107 | |
▷ Abstract classes | 5 | 4.67% |
▷ Concrete classes | 102 | 95.33% |
▷ Final classes | 0 | 0.00% |
Methods | 834 | |
▷ Static methods | 64 | 7.67% |
▷ Public methods | 800 | 95.92% |
▷ Protected methods | 2 | 0.24% |
▷ Private methods | 32 | 3.84% |
Functions | 211 | |
▷ Named functions | 211 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 9 | |
▷ Global constants | 7 | 77.78% |
▷ Class constants | 2 | 22.22% |
▷ Public constants | 2 | 100.00% |
Plugin size 50% from 2 tests
Image compression 50% from 2 tests
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
135 PNG files occupy 3.16MB with 0.97MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/qIcon.png | 0.57KB | 0.43KB | ▼ 24.91% |
img/fbPostTypesDiff6.png | 88.71KB | 87.18KB | ▼ 1.73% |
img/tpz-bg.png | 0.98KB | 0.11KB | ▼ 88.73% |
img/ig16x.png | 0.89KB | 1.15KB | 0.00% |
js-css/blueX.png | 1.04KB | 0.65KB | ▼ 37.72% |