Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | All plugins must install correctly, without throwing any errors, warnings, or notices
You still need to fix the following installer errors
- The plugin cannot be installed
- > Notice in wp-content/plugins/uniform-js/uniformjs.php+17
Trying to access array offset on value of type bool
Server metrics [RAM: ▼1.93MB] [CPU: ▼51.74ms] Passed 4 tests
Analyzing server-side resources used by WP UniformJS
This plugin does not affect your website's performance
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.06 ▼1.40 | 4.38 ▼31.82 |
Dashboard /wp-admin | 2.08 ▼1.26 | 6.86 ▼53.58 |
Posts /wp-admin/edit.php | 2.08 ▼1.27 | 7.40 ▼38.27 |
Add New Post /wp-admin/post-new.php | 2.08 ▼3.80 | 6.43 ▼83.29 |
Media Library /wp-admin/upload.php | 2.08 ▼1.15 | 5.39 ▼28.63 |
UniformJS /wp-admin/options-general.php?page=uniformjs | 2.08 | 6.50 |
Server storage [IO: ▲0.11MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 15 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
widget_recent-posts |
db_upgraded |
widget_recent-comments |
theysaidso_admin_options |
can_compress_scripts |
Browser metrics Passed 4 tests
Checking browser requirements for WP UniformJS
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,922 ▲176 | 13.62 ▼0.67 | 6.73 ▲4.94 | 41.87 ▲1.20 |
Dashboard /wp-admin | 2,210 ▲28 | 4.85 ▼0.07 | 97.88 ▼6.69 | 39.29 ▼3.52 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 1.99 ▲0.02 | 39.16 ▲0.22 | 34.65 ▼2.85 |
Add New Post /wp-admin/post-new.php | 1,517 ▼4 | 17.37 ▼5.79 | 589.51 ▼86.41 | 58.26 ▼0.88 |
Media Library /wp-admin/upload.php | 1,395 ▲7 | 4.18 ▼0.04 | 94.33 ▼17.75 | 41.47 ▼6.23 |
UniformJS /wp-admin/options-general.php?page=uniformjs | 818 | 2.04 | 23.40 | 26.93 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
Please fix the following items
- This plugin cannot be uninstalled
- > Notice in wp-content/plugins/uniform-js/uniformjs.php+17
Trying to access array offset on value of type bool
- The uninstall procedure has failed, leaving 6 options in the database
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
These server-side errors were triggered
- 10 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=uniformjs
- > Notice in wp-content/plugins/uniform-js/uniformjs.php+73
Trying to access array offset on value of type bool
- 3 occurences, only the last one shown
- > GET request to /wp-admin/options-general.php?page=uniformjs
- > Notice in wp-content/plugins/uniform-js/uniformjs.php+64
Undefined variable: uniformjs_style
SRP Passed 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
The SRP test was a success
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
Don't ignore readme.txt as it is the file that instructs WordPress.org on how to present your plugin to the world
Please fix the following attributes:
- Screenshots: A description for screenshot #3 is required in uniform-js/assets to your readme.txt
uniform-js/uniformjs.php 92% from 13 tests
The main file in "WP UniformJS" v. 1.1 serves as a complement to information provided in readme.txt and as the entry point to the plugin
It is important to fix the following:
- Main file name: The principal plugin file should be the same as the plugin slug ("uniform-js.php" instead of "uniformjs.php")
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short glimpse at programming languages used with this plugin and a check that no dangerous files are present
There were no executable files found in this plugin1,059 lines of code in 5 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
CSS | 3 | 49 | 70 | 981 |
PHP | 1 | 35 | 19 | 77 |
JavaScript | 1 | 0 | 0 | 1 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
Everything seems fine, there were no complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.19 |
Average class complexity | 0.00 |
▷ Minimum class complexity | 0.00 |
▷ Maximum class complexity | 0.00 |
Average method complexity | 0.00 |
▷ Minimum method complexity | 0.00 |
▷ Maximum method complexity | 0.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 0 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 0 | 0.00% |
▷ Final classes | 0 | 0.00% |
Methods | 0 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 0 | 0.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 6 | |
▷ Named functions | 6 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
9 PNG files occupy 0.07MB with 0.01MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
images/bg-input-focus-aristo.png | 0.18KB | 0.18KB | ▼ 1.08% |
images/bg-input.png | 0.14KB | 0.10KB | ▼ 28.67% |
images/sprite-agent.png | 16.16KB | 8.29KB | ▼ 48.67% |
images/bg-input-focus.png | 0.14KB | 0.10KB | ▼ 27.27% |
images/bg-input-agent.png | 0.18KB | 0.19KB | 0.00% |