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.36MB] [CPU: ▼6.16ms] Passed 4 tests
An overview of server-side resources used by WAJ Scripts
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.83 ▲0.36 | 50.00 ▲8.66 |
Dashboard /wp-admin | 3.67 ▲0.37 | 49.05 ▼1.84 |
Posts /wp-admin/edit.php | 3.72 ▲0.36 | 48.32 ▼4.86 |
Add New Post /wp-admin/post-new.php | 6.26 ▲0.37 | 89.55 ▼20.82 |
Media Library /wp-admin/upload.php | 3.60 ▲0.36 | 41.83 ▲2.89 |
Directories /wp-admin/themes.php?page=theme_directories | 3.71 | 35.37 |
Server storage [IO: ▲0.32MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 108 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
theme_directories_options |
widget_theysaidso_widget |
db_upgraded |
theysaidso_admin_options |
widget_recent-comments |
can_compress_scripts |
Browser metrics Passed 4 tests
A check of browser resources used by WAJ Scripts
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,793 ▲32 | 14.72 ▲0.43 | 1.71 ▲0.09 | 44.66 ▲0.66 |
Dashboard /wp-admin | 2,196 ▲22 | 5.52 ▼0.06 | 82.91 ▼14.47 | 40.45 ▼0.01 |
Posts /wp-admin/edit.php | 2,104 ▲4 | 2.03 ▲0.01 | 37.19 ▼3.69 | 33.57 ▼0.83 |
Add New Post /wp-admin/post-new.php | 1,531 ▲5 | 22.96 ▲0.05 | 675.05 ▲17.62 | 57.99 ▲3.02 |
Media Library /wp-admin/upload.php | 1,407 ▲4 | 4.21 ▼0.01 | 102.72 ▼9.56 | 44.54 ▼3.39 |
Directories /wp-admin/themes.php?page=theme_directories | 809 | 2.00 | 24.47 | 29.82 |
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
- Zombie WordPress options were found after uninstall: 7 options
- can_compress_scripts
- db_upgraded
- widget_recent-comments
- theysaidso_admin_options
- theme_directories_options
- widget_theysaidso_widget
- widget_recent-posts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a short smoke test looking for server-side errors
Even though everything seems fine, this is not an exhaustive test
SRP 50% from 2 tests
🔹 Tests weight: 20 | A shallow check of the single-responsibility principle; PHP files should perform no action - including output of placeholder text - and trigger no errors when accessed directly
Please take a closer look at the following
- 16× PHP files trigger server-side errors or warnings when accessed directly (only 10 are shown):
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/waj-scripts/vendor/waughj/test-hash-item/tests/TestHashItemTest.php:13
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/waj-scripts/vendor/waughj/verified-arguments/tests/VerifiedArgumentsTest.php:6
- > PHP Fatal error
Uncaught Error: Class 'WaughJ\\VerifiedArguments\\VerifiedArguments' not found in wp-content/plugins/waj-scripts/vendor/waughj/verified-arguments-same-type/src/VerifiedArgumentsSameType.php:8
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/waj-scripts/vendor/psr/http-message/src/ResponseInterface.php:20
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/waj-scripts/vendor/waughj/wp-theme-option/tests/WPThemeOptionsPageManagerTest.php:9
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/waj-scripts/vendor/waughj/wp-theme-option/tests/WPThemeOptionsSectionTest.php:9
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\RequestInterface' not found in wp-content/plugins/waj-scripts/vendor/psr/http-message/src/ServerRequestInterface.php:43
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/waj-scripts/vendor/waughj/verified-arguments-same-type/tests/VerifiedArgumentsSameTypeTest.php:6
- > PHP Fatal error
Uncaught Error: Class 'PHPUnit\\Framework\\TestCase' not found in wp-content/plugins/waj-scripts/vendor/waughj/wp-theme-option/tests/WPThemeOptionsPageTest.php:10
- > PHP Fatal error
Uncaught Error: Interface 'Psr\\Http\\Message\\MessageInterface' not found in wp-content/plugins/waj-scripts/vendor/psr/http-message/src/RequestInterface.php:24
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
Everything seems fine on the user side
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Often overlooked, readme.txt is one of the most important files in your plugin
1 plugin tags: scripts
waj-scripts/waj-scripts.php Passed 13 tests
"WAJ Scripts" version 1.1.1's primary PHP file adds more information about the plugin and serves as the entry point for WordPress
70 characters long description:
WordPress plugin for easily adding CSS stylesheets & JavaScript files.
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 detected3,726 lines of code in 79 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 48 | 532 | 1,292 | 2,542 |
JSON | 12 | 0 | 0 | 792 |
Markdown | 16 | 187 | 0 | 375 |
XML | 1 | 0 | 0 | 12 |
YAML | 2 | 2 | 0 | 5 |
PHP code Passed 2 tests
Analyzing cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.20 |
Average class complexity | 5.22 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 44.00 |
Average method complexity | 1.77 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 18.00 |
Code structure | ||
---|---|---|
Namespaces | 15 | |
Interfaces | 7 | |
Traits | 1 | |
Classes | 32 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 32 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 289 | |
▷ Static methods | 32 | 11.07% |
▷ Public methods | 258 | 89.27% |
▷ Protected methods | 1 | 0.35% |
▷ Private methods | 30 | 10.38% |
Functions | 42 | |
▷ Named functions | 26 | 61.90% |
▷ Anonymous functions | 16 | 38.10% |
Constants | 4 | |
▷ Global constants | 0 | 0.00% |
▷ Class constants | 4 | 100.00% |
▷ Public constants | 4 | 100.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
All PNG images should be compressed to minimize bandwidth usage for end users
No PNG files were detected