Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.14MB] [CPU: ▲0.12ms] Passed 4 tests
This is a short check of server-side resources used by RSG Compiled Libraries
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.59 ▲0.13 | 40.19 ▲0.12 |
Dashboard /wp-admin | 3.45 ▲0.14 | 49.50 ▲2.64 |
Posts /wp-admin/edit.php | 3.56 ▲0.21 | 48.04 ▲2.75 |
Add New Post /wp-admin/post-new.php | 6.05 ▲0.16 | 85.85 ▼5.03 |
Media Library /wp-admin/upload.php | 3.37 ▲0.14 | 40.54 ▲3.58 |
Libraries /wp-admin/admin.php?page=rsgcld | 3.34 | 32.21 |
RSG Addons /wp-admin/admin.php?page=rsg_addons_page | 3.34 | 32.46 |
Server storage [IO: ▲9.10MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 84 new files
Database: no new tables, 8 new options
New WordPress options |
---|
RSGCLD_VERSION |
widget_theysaidso_widget |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-posts |
widget_recent-comments |
db_upgraded |
rsgcld_login_modal_template |
Browser metrics Passed 4 tests
Checking browser requirements for RSG Compiled Libraries
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,950 ▲215 | 14.13 ▼0.12 | 7.49 ▲5.75 | 41.98 ▼0.27 |
Dashboard /wp-admin | 2,243 ▲55 | 5.01 ▼0.89 | 105.10 ▼0.01 | 39.50 ▼2.15 |
Posts /wp-admin/edit.php | 2,126 ▲37 | 2.11 ▲0.08 | 36.49 ▲0.72 | 37.15 ▲3.88 |
Add New Post /wp-admin/post-new.php | 1,547 ▲13 | 17.64 ▼5.33 | 661.46 ▼4.22 | 59.47 ▼0.60 |
Media Library /wp-admin/upload.php | 1,425 ▲40 | 4.30 ▲0.03 | 94.50 ▼13.74 | 45.28 ▼1.72 |
Libraries /wp-admin/admin.php?page=rsgcld | 1,420 | 2.14 | 27.52 | 78.19 |
RSG Addons /wp-admin/admin.php?page=rsg_addons_page | 816 | 2.14 | 25.43 | 36.40 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | It is important to correctly uninstall your plugin, without leaving any traces
The following items require your attention
- Zombie WordPress options detected upon uninstall: 7 options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- can_compress_scripts
- rsgcld_login_modal_template
- widget_recent-comments
- theysaidso_admin_options
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)
The smoke test was a success, however most plugin functionality was not tested
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 fix the following items
- 5× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function is_user_logged_in() in wp-content/plugins/rsg-compiled-libraries/templates/rsg-popup_menu.php:4
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/rsg-compiled-libraries/templates/rsg-login-blue.php:27
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/rsg-compiled-libraries/my-lib/rsg/functions/wp_bootstrap_navwalker.php:13
- > PHP Fatal error
Uncaught Error: Class 'Walker_Nav_Menu' not found in wp-content/plugins/rsg-compiled-libraries/my-lib/rsg/functions/wp_bootstrap_navwalker.php:13
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/rsg-compiled-libraries/templates/rsg-login.php:25
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
There were no browser issues found
Optimizations
Plugin configuration 83% from 29 tests
readme.txt 94% from 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
Attributes that need to be fixed:
- Tags: Too many tags (21 tag instead of maximum 10); only the first 5 tags are used in your directory listing
rsg-compiled-libraries/rsgcld.php 69% from 13 tests
"RSG Compiled Libraries" version 0.0.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
The following require your attention:
- Domain Path: The domain path folder does not exist ("/lang")
- Main file name: The principal plugin file should be the same as the plugin slug ("rsg-compiled-libraries.php" instead of "rsgcld.php")
- Text Domain: You no longer need to specify the text domain since WordPress 4.6; it must be the same as the plugin slug
- Description: If Twitter did it, so should we! Keep the description under 140 characters (currently 279 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are considered dangerous and should not be included with any WordPress plugin
Good job! No executable or dangerous file extensions detected28,496 lines of code in 58 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 21 | 1,852 | 1,106 | 14,566 |
CSS | 21 | 3,457 | 49 | 8,179 |
SVG | 4 | 1 | 12 | 4,495 |
PHP | 7 | 109 | 133 | 748 |
Sass | 2 | 27 | 5 | 262 |
LESS | 1 | 11 | 5 | 152 |
Markdown | 1 | 17 | 0 | 86 |
Ruby | 1 | 2 | 0 | 8 |
PHP code Passed 2 tests
This plugin's cyclomatic complexity and code structure detailed below
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 23.00 |
▷ Minimum class complexity | 11.00 |
▷ Maximum class complexity | 35.00 |
Average method complexity | 5.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 26.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 | 11 | |
▷ Static methods | 1 | 9.09% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 16 | |
▷ Named functions | 16 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 8 | |
▷ Global constants | 8 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.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
7 PNG files occupy 1.00MB with 0.36MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
my-lib/rsg/screenshot-5.png | 7.70KB | 7.54KB | ▼ 2.01% |
my-lib/rsg/gears.png | 760.37KB | 88.79KB | ▼ 88.32% |
my-lib/rsg/default-login-modal.png | 14.25KB | 14.88KB | 0.00% |
my-lib/rsg/icon-256x256.png | 98.86KB | 9.83KB | ▼ 90.06% |
my-lib/rsg/blue-login-modal.png | 11.06KB | 11.26KB | 0.00% |