Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | The install procedure must perform silently
You still need to fix the following installer errors
- The plugin cannot be installed
- > Deprecated in wp-content/plugins/menuthroughjson/MenuThroughJSON.php+19
define(): Declaration of case-insensitive constants is deprecated
Server metrics [RAM: ▼1.71MB] [CPU: ▼55.89ms] Passed 4 tests
A check of server-side resources used by MenuThroughJSON
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.28 ▼1.18 | 5.78 ▼36.42 |
Dashboard /wp-admin | 2.30 ▼1.01 | 6.47 ▼60.99 |
Posts /wp-admin/edit.php | 2.30 ▼1.06 | 7.57 ▼43.68 |
Add New Post /wp-admin/post-new.php | 2.30 ▼3.59 | 8.38 ▼82.48 |
Media Library /wp-admin/upload.php | 2.30 ▼0.93 | 6.29 ▼27.76 |
MenuThroughJSON /wp-admin/admin.php?page=MTJ_MenuThroughJSONDashboard | 2.30 | 7.12 |
Gestione Plugin /wp-admin/admin.php?page=MTJ_gestionePlugin | 2.30 | 10.93 |
Gestione Speciali /wp-admin/admin.php?page=MTJ_gestioneSpeciali | 2.30 | 7.40 |
Server storage [IO: ▲8.46MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 1,646 new files
Database: 3 new tables, 6 new options
New tables |
---|
wp_special_post |
wp_menu |
wp_relations_menu_item |
New WordPress options |
---|
theysaidso_admin_options |
widget_recent-comments |
db_upgraded |
widget_recent-posts |
widget_theysaidso_widget |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for MenuThroughJSON
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲173 | 14.22 ▼0.20 | 1.75 ▲0.12 | 39.14 ▼12.55 |
Dashboard /wp-admin | 2,311 ▲123 | 6.04 ▲1.16 | 122.52 ▲7.32 | 46.83 ▲3.27 |
Posts /wp-admin/edit.php | 2,183 ▲94 | 2.78 ▲0.74 | 44.09 ▲0.67 | 34.72 ▼0.35 |
Add New Post /wp-admin/post-new.php | 1,770 ▲256 | 23.86 ▲6.22 | 678.87 ▼0.96 | 46.19 ▼2.17 |
Media Library /wp-admin/upload.php | 1,499 ▲108 | 5.22 ▲1.01 | 108.14 ▲13.56 | 41.65 ▼1.22 |
MenuThroughJSON /wp-admin/admin.php?page=MTJ_MenuThroughJSONDashboard | 1,039 | 2.90 | 53.78 | 39.43 |
Gestione Plugin /wp-admin/admin.php?page=MTJ_gestionePlugin | 1,463 | 3.30 | 61.03 | 32.25 |
Gestione Speciali /wp-admin/admin.php?page=MTJ_gestioneSpeciali | 1,144 | 2.78 | 49.81 | 33.27 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Uninstall procedure validation failed for this plugin
- > Deprecated in wp-content/plugins/menuthroughjson/MenuThroughJSON.php+19
define(): Declaration of case-insensitive constants is deprecated
- This plugin does not fully uninstall, leaving 6 options in the database
- widget_recent-posts
- can_compress_scripts
- theysaidso_admin_options
- widget_recent-comments
- db_upgraded
- widget_theysaidso_widget
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
These errors were triggered by the plugin
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=MTJ_gestioneSpeciali
- > Deprecated in wp-content/plugins/menuthroughjson/MenuThroughJSON.php+19
define(): Declaration of case-insensitive constants is deprecated
- 2 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=MTJ_MenuThroughJSONDashboard
- > Notice in wp-content/plugins/menuthroughjson/dashboardmenu.php+22
Trying to access array offset on value of type null
- > GET request to /wp-admin/admin.php?page=MTJ_MenuThroughJSONDashboard
- > Notice in wp-content/plugins/menuthroughjson/dashboardmenu.php+36
Undefined variable: resultMenuVoice
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
The following issues need your attention
- 5× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/menuthroughjson/MenuThroughJSON.php:701
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/menuthroughjson/custom_class/MTJ_speciali.class.php:15
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/menuthroughjson/custom_class/MTJ_dashboard.class.php:52
- > PHP Fatal error
Uncaught Error: Call to a member function get_results() on null in wp-content/plugins/menuthroughjson/custom_class/MTJ_gestionePlugin.class.php:13
- > PHP Notice
Trying to get property 'prefix' of non-object in wp-content/plugins/menuthroughjson/custom_class/MTJ_dashboard.class.php on line 51
- > 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)
No browser issues were found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
The readme.txt file uses markdown syntax to describe your plugin to the world
4 plugin tags: menu, ios, json, android
menuthroughjson/MenuThroughJSON.php 85% from 13 tests
The main PHP script in "MenuThroughJSON" version 1.1 is automatically included on every request by WordPress
Please take the time to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("menuthroughjson.php" instead of "MenuThroughJSON.php")
- Description: The description should be shorter than 140 characters (currently 254 characters long)
Code Analysis 5% from 3 tests
File types 0% from 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
These items require your attention
- For security reasons, never distribute binary or executable files with your plugin
- .ps1 - Windows PowerShell Cmdlet in Windows
- ☣ wp-content/plugins/menuthroughjson/assets/bootstrap/nuget/MyGet.ps1
- .ps1 - Windows PowerShell Cmdlet in Windows
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
HTML | 2 | 2,239 | 0 | 26,219 |
JavaScript | 148 | 6,516 | 9,435 | 24,565 |
SVG | 736 | 11 | 737 | 12,833 |
CSS | 16 | 1,393 | 91 | 12,005 |
LESS | 75 | 1,180 | 1,554 | 7,823 |
JSON | 14 | 0 | 0 | 3,409 |
Sass | 4 | 7 | 6 | 2,243 |
PHP | 7 | 93 | 53 | 1,381 |
Markdown | 5 | 133 | 0 | 338 |
YAML | 2 | 16 | 16 | 72 |
XML | 2 | 0 | 0 | 56 |
PowerShell | 1 | 2 | 2 | 4 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No complexity issues detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.24 |
Average class complexity | 4.67 |
▷ Minimum class complexity | 2.00 |
▷ Maximum class complexity | 7.00 |
Average method complexity | 1.69 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 5.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 16 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 16 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 26 | |
▷ Named functions | 25 | 96.15% |
▷ Anonymous functions | 1 | 3.85% |
Constants | 1 | |
▷ Global constants | 1 | 100.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
603 compressed PNG files occupy 1.82MB
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/Ionicons/png/512/ios7-football-outline.png | 6.12KB | 6.88KB | 0.00% |
assets/Ionicons/png/512/social-yahoo.png | 1.69KB | 1.81KB | 0.00% |
assets/Ionicons/png/512/ios7-copy.png | 0.76KB | 0.79KB | 0.00% |
assets/Ionicons/png/512/social-linkedin.png | 2.22KB | 2.38KB | 0.00% |
assets/Ionicons/png/512/speakerphone.png | 4.21KB | 4.63KB | 0.00% |