Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
Installer ran successfully
Server metrics [RAM: ▲0.03MB] [CPU: ▼2.25ms] Passed 4 tests
An overview of server-side resources used by JinMenu
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.49 ▲0.02 | 44.81 ▲0.92 |
Dashboard /wp-admin | 3.33 ▲0.03 | 48.26 ▼2.37 |
Posts /wp-admin/edit.php | 3.39 ▲0.03 | 47.30 ▼0.94 |
Add New Post /wp-admin/post-new.php | 5.91 ▲0.03 | 85.76 ▼6.60 |
Media Library /wp-admin/upload.php | 3.26 ▲0.03 | 40.92 ▲3.10 |
Jin Menus /wp-admin/themes.php?page=jin-plugin-menu | 3.24 | 32.83 |
Server storage [IO: ▲0.04MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
The plugin installed successfully
Filesystem: 4 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
can_compress_scripts |
db_upgraded |
widget_recent-posts |
theysaidso_admin_options |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
Checking browser requirements for JinMenu
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,886 ▲140 | 13.95 ▼0.28 | 8.41 ▲6.21 | 39.09 ▼2.80 |
Dashboard /wp-admin | 2,207 ▲19 | 4.84 ▼0.08 | 102.14 ▼6.45 | 40.64 ▼1.19 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 2.04 ▼0.00 | 35.04 ▼8.90 | 31.75 ▼7.15 |
Add New Post /wp-admin/post-new.php | 1,545 ▲26 | 18.56 ▼4.58 | 652.67 ▼0.79 | 55.00 ▼1.98 |
Media Library /wp-admin/upload.php | 1,389 ▲4 | 4.17 ▼0.02 | 99.17 ▼5.43 | 40.61 ▼3.19 |
Jin Menus /wp-admin/themes.php?page=jin-plugin-menu | 1,052 | 3.69 | 77.62 | 32.89 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- theysaidso_admin_options
- can_compress_scripts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Please fix the following server-side errors
- 2 occurences, only the last one shown
- > GET request to /wp-admin/themes.php?page=jin-plugin-menu
- > Notice in wp-content/plugins/jin-menu/template.php+6
Undefined offset: 0
- > GET request to /wp-admin/themes.php?page=jin-plugin-menu
- > Notice in wp-content/plugins/jin-menu/template.php+5
Trying to get property 'term_id' of non-object
- > GET request to /wp-admin/themes.php?page=jin-plugin-menu
- > Notice in wp-content/plugins/jin-menu/template.php+6
Trying to get property 'name' of non-object
- > GET request to /wp-admin/themes.php?page=jin-plugin-menu
- > Notice in wp-content/plugins/jin-menu/template.php+157
Trying to get property 'type' of non-object
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
- 2× GET requests to PHP files trigger server-side errors or Error 500 responses:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/jin-menu/jinmenu.php:199
- > PHP Fatal error
Uncaught Error: Call to undefined function get_terms() in wp-content/plugins/jin-menu/template.php:4
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test
Optimizations
Plugin configuration 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file is undoubtedly the most important file in your plugin, preparing it for public listing on WordPress.org
6 plugin tags: onclick event, jquery, wp menu, jquery code in menu, onclick in wp menu...
jin-menu/jinmenu.php 92% from 13 tests
This is the main PHP file of "JinMenu" version 3.2.1, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Main file name: Name the main plugin file the same as the plugin slug ("jin-menu.php" instead of "jinmenu.php")
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
No dangerous file extensions were detected259 lines of code in 2 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 2 | 238 | 15 | 259 |
PHP code Passed 2 tests
Analyzing logical lines of code, cyclomatic complexity, and other code metrics
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.33 |
Average class complexity | 16.00 |
▷ Minimum class complexity | 16.00 |
▷ Maximum class complexity | 16.00 |
Average method complexity | 2.36 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 7.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 1 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 1 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 11 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 11 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 1 | |
▷ Named functions | 1 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 0 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Using a strong compression for your PNG files is a great way to speed-up your plugin
1 PNG file occupies 0.03MB with 0.02MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-1.png | 30.89KB | 11.47KB | ▼ 62.87% |