Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
These installer errors require your attention
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/slimjetpack/class.jetpack.php+25
Methods with the same name as their class will not be constructors in a future version of PHP; Jetpack has a deprecated constructor
Server metrics [RAM: ▼0.77MB] [CPU: ▼46.68ms] Passed 4 tests
Analyzing server-side resources used by Slim Jetpack
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.21 ▼0.25 | 8.95 ▼28.95 |
Dashboard /wp-admin | 3.23 ▼0.07 | 11.10 ▼37.94 |
Posts /wp-admin/edit.php | 3.23 ▼0.12 | 8.07 ▼39.25 |
Add New Post /wp-admin/post-new.php | 3.23 ▼2.65 | 8.91 ▼80.59 |
Media Library /wp-admin/upload.php | 3.23 ▲0.01 | 13.78 ▼20.45 |
Slim Jetpack /wp-admin/options-general.php?page=jetpack | 3.23 | 8.66 |
/wp-admin/admin.php?page=jetpack-debugger | 3.23 | 10.21 |
Server storage [IO: ▲15.86MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin installed successfully
Filesystem: 583 new files
Database: no new tables, 9 new options
New WordPress options |
---|
widget_recent-posts |
widget_recent-comments |
db_upgraded |
jetpack_activated |
jetpack_options |
widget_theysaidso_widget |
recovery_mode_email_last_sent |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for Slim Jetpack
This plugin renders optimally with no browser resource issues detected
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,809 ▲63 | 13.26 ▼1.49 | 4.75 ▲2.83 | 45.47 ▲3.57 |
Dashboard /wp-admin | 2,212 ▲21 | 4.88 ▼0.02 | 114.61 ▲4.51 | 46.44 ▲1.47 |
Posts /wp-admin/edit.php | 2,101 ▲15 | 2.05 ▲0.04 | 34.85 ▼2.47 | 33.02 ▼3.88 |
Add New Post /wp-admin/post-new.php | 1,536 ▲16 | 23.13 ▼0.31 | 701.16 ▼3.01 | 58.02 ▼7.76 |
Media Library /wp-admin/upload.php | 1,397 ▲6 | 4.14 ▼0.01 | 110.26 ▲5.81 | 50.05 ▲1.70 |
Slim Jetpack /wp-admin/options-general.php?page=jetpack | 1,180 | 1.54 | 22.55 | 45.77 |
/wp-admin/admin.php?page=jetpack-debugger | 780 | 1.55 | 7.99 | 38.48 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/slimjetpack/class.jetpack.php+25
Methods with the same name as their class will not be constructors in a future version of PHP; Jetpack has a deprecated constructor
- This plugin did not uninstall successfully, leaving 7 options in the database
- widget_theysaidso_widget
- widget_recent-posts
- theysaidso_admin_options
- widget_recent-comments
- can_compress_scripts
- db_upgraded
- recovery_mode_email_last_sent
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Smoke test failed, please fix the following
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=jetpack-debugger
- > Deprecated in wp-content/plugins/slimjetpack/class.jetpack.php+25
Methods with the same name as their class will not be constructors in a future version of PHP; Jetpack has a deprecated constructor
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=jetpack-debugger
- > Deprecated in wp-content/plugins/slimjetpack/class.jetpack-user-agent.php+61
Methods with the same name as their class will not be constructors in a future version of PHP; Jetpack_User_Agent_Info has a deprecated constructor
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=jetpack-debugger
- > User notice in wp-includes/functions.php+5905
Function add_submenu_page was called incorrectly. The seventh parameter passed to add_submenu_page() should be numeric representing menu position. Please see Debugging in WordPress for more information. (This message was added in version 5.3.0.)
- > GET request to /wp-admin/options-general.php?page=jetpack
- > Error in wp-content/plugins/slimjetpack/modules/module-info.php+128
Uncaught Error: [] operator not supported for strings in wp-content/plugins/slimjetpack/modules/module-info.php:128
Stack trace:
#0 wp-includes/class-wp-hook.php(310): jetpack_shortcodes_more_info_connected()
#1 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 wp-includes/plugin.php(517): WP_Hook->do_action()
#3 wp-content/plugins/slimjetpack/class.jetpack.php(3089): do_action()
#4 wp-content/plugins/slimjetpack/class.jetpack.php(2802): Jetpack->admin_screen_list_modules()
#5 wp-includes/class-wp-hook.php(310): Jetpack->admin_page()
#6 wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#7 wp-includes/plugin.php(517): WP_Hook->do_action()
#8 wp-admin/admin.php(259): do_action()
#9 wp-admin/options-general.php(10): require_once('/var/www/wordpr...')
#10 {main}
thrown- > GET request to /wp-admin/admin.php?page=jetpack-debugger
- > User deprecated in wp-includes/functions.php+5453
Function get_currentuserinfo is deprecated since version 4.5.0! Use wp_get_current_user() instead.
- > GET request to /wp-admin/admin.php?page=jetpack-debugger
- > Deprecated in wp-content/plugins/slimjetpack/class.jetpack-ixr-client.php+10
Methods with the same name as their class will not be constructors in a future version of PHP; Jetpack_IXR_Client has a deprecated constructor
- > GET request to /wp-admin/admin.php?page=jetpack-debugger
- > Warning in wp-content/plugins/slimjetpack/class.jetpack-ixr-client.php+26
Declaration of Jetpack_IXR_Client::query() should be compatible with IXR_Client::query(...$args)
- > GET request to /wp-admin/admin.php?page=jetpack-debugger
- > Deprecated in wp-content/plugins/slimjetpack/class.jetpack-ixr-client.php+99
Methods with the same name as their class will not be constructors in a future version of PHP; Jetpack_IXR_ClientMulticall has a deprecated constructor
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
The following issues need your attention
- 139× GET requests to PHP files trigger server-side errors or Error 500 responses (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slimjetpack/modules/sharedaddy/sharing-service.php:443
- > PHP Fatal error
Uncaught Error: Call to undefined function the_ID() in wp-content/plugins/slimjetpack/modules/minileven/theme/pub/minileven/content.php:9
- > PHP Fatal error
Uncaught Error: Class 'Jetpack' not found in wp-content/plugins/slimjetpack/modules/shortcodes.php:45
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/slimjetpack/modules/omnisearch/omnisearch-posts.php on line 4
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slimjetpack/modules/custom-post-types/testimonial.php:299
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/slimjetpack/modules/theme-tools/featured-content.php:52
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_embed_register_handler() in wp-content/plugins/slimjetpack/modules/shortcodes/vine.php:52
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/slimjetpack/modules/shortcodes/scribd.php:45
- > PHP Warning
require_once(ABSPATHwp-admin/includes/class-wp-comments-list-table.php): failed to open stream: No such file or directory in wp-content/plugins/slimjetpack/modules/omnisearch/omnisearch-comments.php on line 4
- > PHP Fatal error
Uncaught Error: Class 'WP_Error' not found in wp-content/plugins/slimjetpack/class.jetpack-error.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
No browser issues were found
Optimizations
Plugin configuration 93% 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
Please fix the following attributes:
- Tags: You are using too many tags: 47 tag instead of maximum 10
slimjetpack/slimjetpack.php 92% from 13 tests
The main file in "Slim Jetpack" v. 2.7.0.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
You should first fix the following items:
- Text Domain: The text domain is optional since WordPress version 4.6; if you do specify it, it must be the same as the plugin slug
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 plugin183,160 lines of code in 309 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PO File | 45 | 56,436 | 61,863 | 119,337 |
PHP | 152 | 8,456 | 8,013 | 37,606 |
JavaScript | 46 | 2,817 | 1,524 | 17,227 |
CSS | 51 | 1,231 | 397 | 7,964 |
HTML | 9 | 120 | 5 | 733 |
SVG | 4 | 0 | 0 | 238 |
Markdown | 1 | 17 | 0 | 44 |
XML | 1 | 0 | 1 | 11 |
PHP code 50% from 2 tests
An short overview of logical lines of code, cyclomatic complexity, and other code metrics
The following items need your attention
- Method cyclomatic complexity has to be reduced to less than 100 (currently 148)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.41 |
Average class complexity | 48.53 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 576.00 |
Average method complexity | 5.15 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 148.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 133 | |
▷ Abstract classes | 6 | 4.51% |
▷ Concrete classes | 127 | 95.49% |
▷ Final classes | 0 | 0.00% |
Methods | 1,526 | |
▷ Static methods | 281 | 18.41% |
▷ Public methods | 1,160 | 76.02% |
▷ Protected methods | 334 | 21.89% |
▷ Private methods | 32 | 2.10% |
Functions | 380 | |
▷ Named functions | 380 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 71 | |
▷ Global constants | 44 | 61.97% |
▷ Class constants | 27 | 38.03% |
▷ Public constants | 27 | 100.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
188 PNG files occupy 2.33MB with 0.60MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
_inc/images/rss/silver-small.png | 0.33KB | 0.55KB | 0.00% |
_inc/images/screenshots/custom-css.png | 25.18KB | 14.36KB | ▼ 43.00% |
_inc/images/automattic.png | 1.86KB | 1.82KB | ▼ 2.36% |
modules/sharedaddy/images/digg.png | 1.42KB | 0.53KB | ▼ 62.32% |
modules/carousel/images/arrows.png | 5.26KB | 4.17KB | ▼ 20.72% |