Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | It is important to correctly install your plugin, without throwing errors or notices
It is recommended to fix the following installer errors
- This plugin did not install gracefully
- > Deprecated in wp-content/plugins/company-presentation/php/careerpagespluginlibrary.php+340
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
Server metrics [RAM: ▼1.67MB] [CPU: ▼52.79ms] Passed 4 tests
An overview of server-side resources used by People profiles, team- and company pages
Server-side resource usage in normal parameters
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.32 ▼1.14 | 5.24 ▼35.66 |
Dashboard /wp-admin | 2.34 ▼0.96 | 11.00 ▼39.93 |
Posts /wp-admin/edit.php | 2.34 ▼1.01 | 7.36 ▼46.56 |
Add New Post /wp-admin/post-new.php | 2.34 ▼3.54 | 8.04 ▼88.99 |
Media Library /wp-admin/upload.php | 2.34 ▼0.89 | 8.39 ▼27.96 |
Shortcode /wp-admin/admin.php?page=prodii-shortcode | 2.34 | 7.15 |
Settings /wp-admin/admin.php?page=prodii-settings | 2.34 | 8.06 |
Description /wp-admin/admin.php?page=prodii-description | 2.34 | 6.51 |
Server storage [IO: ▲0.20MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_recent-comments |
theysaidso_admin_options |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_theysaidso_widget |
Browser metrics Passed 4 tests
This is an overview of browser requirements for People profiles, team- and company pages
There were no issues detected in relation to browser resource usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,933 ▲147 | 13.56 ▼0.58 | 8.03 ▲5.93 | 46.08 ▲2.49 |
Dashboard /wp-admin | 2,215 ▲38 | 5.03 ▼0.57 | 90.05 ▲0.82 | 86.67 ▲43.11 |
Posts /wp-admin/edit.php | 2,138 ▲56 | 2.05 ▲0.02 | 36.42 ▲0.87 | 34.40 ▼1.27 |
Add New Post /wp-admin/post-new.php | 1,711 ▲185 | 22.81 ▼0.22 | 668.58 ▼19.47 | 56.72 ▲1.18 |
Media Library /wp-admin/upload.php | 1,432 ▲35 | 4.54 ▲0.33 | 106.33 ▼3.80 | 69.13 ▲19.79 |
Shortcode /wp-admin/admin.php?page=prodii-shortcode | 827 | 1.89 | 25.88 | 28.14 |
Settings /wp-admin/admin.php?page=prodii-settings | 863 | 2.05 | 27.18 | 29.54 |
Description /wp-admin/admin.php?page=prodii-description | 1,069 | 1.91 | 26.53 | 25.96 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
It is recommended to fix the following
- This plugin cannot be uninstalled
- > Deprecated in wp-content/plugins/company-presentation/php/careerpagespluginlibrary.php+340
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- Zombie WordPress options detected upon uninstall: 6 options
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
- db_upgraded
- widget_recent-comments
- widget_recent-posts
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Please fix the following server-side errors
- 3 occurences, only the last one shown
- > GET request to /wp-admin/admin.php?page=prodii-description
- > Deprecated in wp-content/plugins/company-presentation/php/careerpagespluginlibrary.php+340
Unparenthesized `a ? b : c ? d : e` is deprecated. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)`
- > GET request to /wp-admin/admin.php?page=prodii-shortcode
- > Notice in wp-content/plugins/company-presentation/php/careerpagespluginlibrary.php+354
Trying to access array offset on value of type null
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle applies for WordPress plugins as well - please make sure your PHP files perform no actions when accessed directly
Please fix the following
- 10× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Warning
Use of undefined constant WPINC - assumed 'WPINC' (this will throw an Error in a future version of PHP) in wp-content/plugins/company-presentation/careerpagesplugin.php on line 460
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/company-presentation/careerpagesplugin.php:22
- > PHP Warning
Use of undefined constant ABSPATH - assumed 'ABSPATH' (this will throw an Error in a future version of PHP) in wp-content/plugins/company-presentation/careerpagesplugin.php on line 460
- > PHP Warning
include_once(ABSPATHWPINC/class-http.php): failed to open stream: No such file or directory in wp-content/plugins/company-presentation/careerpagesplugin.php on line 460
- > PHP Notice
Undefined index: local in wp-content/plugins/company-presentation/php/careerpagespluginhandler.php on line 23
- > PHP Notice
Undefined index: template in wp-content/plugins/company-presentation/php/careerpagespluginhandler.php on line 25
- > PHP Notice
Undefined index: key in wp-content/plugins/company-presentation/php/careerpagespluginhandler.php on line 22
- > PHP Warning
include_once(): Failed opening 'ABSPATHWPINC/class-http.php' for inclusion (include_path='.:/usr/share/php') in wp-content/plugins/company-presentation/careerpagesplugin.php on line 460
- > PHP Notice
Undefined index: subdir in wp-content/plugins/company-presentation/php/careerpagespluginhandler.php on line 24
- > PHP Notice
Undefined index: action in wp-content/plugins/company-presentation/php/careerpagespluginhandler.php on line 8
- > PHP Warning
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
No browser errors were detected
Optimizations
Plugin configuration 87% from 29 tests
readme.txt 88% from 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
Attributes that require attention:
- Tags: There are too many tags (26 tag instead of maximum 10)
- Screenshots: These screenshots lack descriptions #10, #11, #8, #9 in company-presentation/assets to your readme.txt
company-presentation/careerpagesplugin.php 85% from 13 tests
"People profiles, team- and company pages" version 5.1.0's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
It is important to fix the following:
- Main file name: Even though not officially enforced, the main plugin file should be the same as the plugin slug ("company-presentation.php" instead of "careerpagesplugin.php")
- Description: The description should be shorter than 140 characters (currently 336 characters long)
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | Executable files are not allowed as they can serve as attack vectors
There were no executable files found in this plugin2,987 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
JavaScript | 6 | 413 | 399 | 1,967 |
PHP | 3 | 156 | 91 | 1,019 |
CSS | 1 | 0 | 0 | 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.55 |
Average class complexity | 79.00 |
▷ Minimum class complexity | 15.00 |
▷ Maximum class complexity | 105.00 |
Average method complexity | 7.00 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 58.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 4 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 4 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 52 | |
▷ Static methods | 38 | 73.08% |
▷ Public methods | 52 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 3 | |
▷ Named functions | 3 | 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
It is recommended to compress PNG files in your plugin to minimize bandwidth usage
1 PNG file occupies 0.00MB with 0.00MB in potential savings
Potential savings
Compression of 1 random PNG file using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
img/menu-logo.png | 1.13KB | 0.24KB | ▼ 78.76% |