Benchmarks
Plugin footprint 58% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Warning in wp-content/plugins/filejet-pro/class.filejet.php+244
array_key_exists() expects parameter 2 to be array, null given
Server metrics [RAM: ▲0.20MB] [CPU: ▼8.15ms] Passed 4 tests
This is a short check of server-side resources used by FileJet Pro
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.61 ▲0.15 | 46.42 ▲2.54 |
Dashboard /wp-admin | 3.57 ▲0.27 | 54.33 ▲0.80 |
Posts /wp-admin/edit.php | 3.62 ▲0.26 | 50.37 ▼3.66 |
Add New Post /wp-admin/post-new.php | 6.09 ▲0.20 | 100.57 ▼32.29 |
Media Library /wp-admin/upload.php | 3.43 ▲0.20 | 43.93 ▲5.46 |
FileJet Pro /wp-admin/options-general.php?page=filejet-pro/filejet.php | 3.41 | 36.01 |
Server storage [IO: ▲0.34MB] [DB: ▲0.00MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 26 new files
Database: no new tables, 7 new options
New WordPress options |
---|
widget_recent-posts |
can_compress_scripts |
theysaidso_admin_options |
widget_recent-comments |
filejet_config |
db_upgraded |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
A check of browser resources used by FileJet Pro
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,950 ▲179 | 13.78 ▼0.61 | 1.80 ▼0.21 | 33.11 ▼14.77 |
Dashboard /wp-admin | 2,339 ▲151 | 5.57 ▲0.64 | 119.29 ▲14.95 | 78.69 ▲37.87 |
Posts /wp-admin/edit.php | 2,096 ▲4 | 1.98 ▼0.08 | 37.48 ▼0.65 | 30.75 ▼7.20 |
Add New Post /wp-admin/post-new.php | 1,536 ▲1 | 23.37 ▲0.15 | 666.47 ▼28.16 | 53.36 ▼2.15 |
Media Library /wp-admin/upload.php | 1,452 ▲67 | 4.89 ▲0.68 | 105.45 ▼13.97 | 81.33 ▲30.11 |
FileJet Pro /wp-admin/options-general.php?page=filejet-pro/filejet.php | 906 | 2.46 | 29.63 | 29.43 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
It is recommended to fix the following
- Zombie WordPress options were found after uninstall: 7 options
- widget_recent-comments
- theysaidso_admin_options
- db_upgraded
- can_compress_scripts
- widget_recent-posts
- widget_theysaidso_widget
- filejet_config
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
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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
The following issues need your attention
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/filejet-pro/filejet.php
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Class 'Filejet_Admin' not found in wp-content/plugins/filejet-pro/assets/views/widget.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/filejet-pro/assets/views/passback.php:3
- > PHP Notice
Undefined variable: type in wp-content/plugins/filejet-pro/assets/views/notice.php on line 23
- > PHP Notice
Undefined variable: type in wp-content/plugins/filejet-pro/assets/views/notice.php on line 1
- > PHP Fatal error
Uncaught Error: Class 'Filejet_Admin' not found in wp-content/plugins/filejet-pro/assets/views/setup.php:2
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_url() in wp-content/plugins/filejet-pro/assets/views/welcome.php:3
- > PHP Notice
Undefined variable: type in wp-content/plugins/filejet-pro/assets/views/notice.php on line 19
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a smoke test targeting browser errors/issues
Everything seems fine on the user side
Optimizations
Plugin configuration 93% from 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
5 plugin tags: webp, image optimization, smart cdn, convert, filejet
filejet-pro/filejet.php 85% from 13 tests
The main file in "FileJet Pro" v. 1.3.15 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 ("filejet-pro.php" instead of "filejet.php")
- Text Domain: The text domain name must use dashes instead of underscores, and it must be lowercase
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Good job! No executable or dangerous file extensions detected2,069 lines of code in 21 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 11 | 248 | 73 | 1,363 |
Sass | 1 | 43 | 3 | 673 |
SVG | 7 | 0 | 1 | 31 |
CSS | 1 | 0 | 1 | 1 |
JavaScript | 1 | 0 | 6 | 1 |
PHP code Passed 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
There were no cyclomatic complexity issued detected
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.42 |
Average class complexity | 39.75 |
▷ Minimum class complexity | 3.00 |
▷ Maximum class complexity | 71.00 |
Average method complexity | 3.01 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 14.00 |
Code structure | ||
---|---|---|
Namespaces | 1 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 77 | |
▷ Static methods | 55 | 71.43% |
▷ Public methods | 59 | 76.62% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 18 | 23.38% |
Functions | 2 | |
▷ Named functions | 2 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 31 | |
▷ Global constants | 4 | 12.90% |
▷ Class constants | 27 | 87.10% |
▷ Public constants | 27 | 100.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
2 PNG files occupy 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 2 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/filejet-32x32.png | 0.59KB | 0.37KB | ▼ 37.62% |
assets/images/filejet-16x16.png | 0.33KB | 0.22KB | ▼ 34.22% |