Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
Installer ran successfully
Server metrics [RAM: ▲0.12MB] [CPU: ▼7.39ms] Passed 4 tests
Analyzing server-side resources used by Javascript Obfuscator
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.58 ▲0.12 | 40.64 ▼1.80 |
Dashboard /wp-admin | 3.44 ▲0.09 | 44.86 ▼16.12 |
Posts /wp-admin/edit.php | 3.55 ▲0.19 | 67.07 ▲22.22 |
Add New Post /wp-admin/post-new.php | 6.02 ▲0.13 | 92.97 ▼12.06 |
Media Library /wp-admin/upload.php | 3.36 ▲0.13 | 36.16 ▲0.42 |
JS Obfuscate /wp-admin/options-general.php?page=javascript-obfuscate | 3.33 | 32.55 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
No storage issues were detected
Filesystem: 22 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
jsobfuscate_basic_settings |
theysaidso_admin_options |
widget_theysaidso_widget |
widget_recent-comments |
db_upgraded |
can_compress_scripts |
Browser metrics Passed 4 tests
An overview of browser requirements for Javascript Obfuscator
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,804 ▲58 | 14.48 ▼0.13 | 1.71 ▼0.02 | 44.02 ▲3.51 |
Dashboard /wp-admin | 2,213 ▲25 | 4.84 ▼1.05 | 102.66 ▲3.92 | 44.40 ▲3.13 |
Posts /wp-admin/edit.php | 2,093 ▲4 | 2.05 ▲0.03 | 38.50 ▼2.52 | 31.95 ▼1.76 |
Add New Post /wp-admin/post-new.php | 1,545 ▲12 | 18.18 ▼5.00 | 655.80 ▲36.38 | 60.83 ▲8.44 |
Media Library /wp-admin/upload.php | 1,395 ▲4 | 4.10 ▼0.06 | 101.39 ▲4.69 | 42.08 ▲0.57 |
JS Obfuscate /wp-admin/options-general.php?page=javascript-obfuscate | 879 | 1.92 | 30.84 | 22.39 |
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
Please fix the following items
- This plugin did not uninstall successfully, leaving 7 options in the database
- can_compress_scripts
- widget_recent-posts
- db_upgraded
- widget_theysaidso_widget
- jsobfuscate_basic_settings
- theysaidso_admin_options
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Good news, no errors were detected
SRP 0% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Almost there! Just fix the following items
- 1× PHP files perform the task of outputting text when accessed with GET requests:
- > /wp-content/plugins/javascript-obfuscator/includes/library/vendor/tholu/php-packer/tests/test.php
- 3× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant WPJSOBFUSCATE_PLUGIN_PATH - assumed 'WPJSOBFUSCATE_PLUGIN_PATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/javascript-obfuscator/admin/admin_settings.php on line 15
- > PHP Warning
require(WPJSOBFUSCATE_PLUGIN_PATHincludes/class.settings-api.php): failed to open stream: No such file or directory in wp-content/plugins/javascript-obfuscator/admin/admin_settings.php on line 15
- > PHP Fatal error
require(): Failed opening required 'WPJSOBFUSCATE_PLUGIN_PATHincludes/class.settings-api.php' (include_path='.:/usr/share/php') in wp-content/plugins/javascript-obfuscator/admin/admin_settings.php on line 15
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no browser errors were triggered
Everything seems fine, but this is not an exhaustive test
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 require attention:
- Tags: Too many tags (13 tag instead of maximum 10); only the first 5 tags are used in your directory listing
javascript-obfuscator/javascript-obfuscator.php 85% from 13 tests
The main PHP file in "Javascript Obfuscator" ver. 1.0.2 adds more information about the plugin and also serves as the entry point for this plugin
The following require your attention:
- Description: The description should be shorter than 140 characters (currently 179 characters long)
- Domain Path: The domain path is invalid: folder "/languages" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short check of programming languages and file extensions; no executable files are allowed
Good job! No executable or dangerous file extensions detected1,592 lines of code in 16 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 12 | 359 | 661 | 1,474 |
JSON | 3 | 0 | 0 | 88 |
Markdown | 1 | 8 | 0 | 30 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
There are no cyclomatic complexity problems detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.37 |
Average class complexity | 24.62 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 73.00 |
Average method complexity | 2.67 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 8 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 8 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 102 | |
▷ Static methods | 6 | 5.88% |
▷ Public methods | 70 | 68.63% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 32 | 31.37% |
Functions | 9 | |
▷ Named functions | 2 | 22.22% |
▷ Anonymous functions | 7 | 77.78% |
Constants | 12 | |
▷ Global constants | 2 | 16.67% |
▷ Class constants | 10 | 83.33% |
▷ Public constants | 10 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
There are no PNG files in this plugin