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.29MB] [CPU: ▼3.28ms] Passed 4 tests
A check of server-side resources used by Pronamic Companies
This plugin has minimal impact on server resources
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.72 ▲0.25 | 41.99 ▼2.32 |
Dashboard /wp-admin | 3.65 ▲0.34 | 49.30 ▼6.78 |
Posts /wp-admin/edit.php | 3.70 ▲0.34 | 51.53 ▲1.65 |
Add New Post /wp-admin/post-new.php | 6.17 ▲0.28 | 89.62 ▼4.89 |
Media Library /wp-admin/upload.php | 3.51 ▲0.28 | 39.45 ▲0.89 |
Add New /wp-admin/post-new.php?post_type=pronamic_company | 3.70 | 57.52 |
Settings /wp-admin/edit.php?post_type=pronamic_company&page=pronamic_companies_settings | 3.52 | 46.13 |
Export /wp-admin/edit.php?post_type=pronamic_company&page=pronamic_companies_export | 3.52 | 38.30 |
Companies /wp-admin/edit.php?post_type=pronamic_company | 3.52 | 38.36 |
Server storage [IO: ▲0.63MB] [DB: ▲0.00MB] Passed 3 tests
Analyzing filesystem and database footprints of this plugin
This plugin was installed successfully
Filesystem: 29 new files
Database: no new tables, 8 new options
New WordPress options |
---|
theysaidso_admin_options |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
pronamic_companies_version |
can_compress_scripts |
widget_theysaidso_widget |
pronamic_companies_taxonomies |
Browser metrics Passed 4 tests
This is an overview of browser requirements for Pronamic Companies
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,827 ▲66 | 14.25 ▼0.29 | 1.63 ▼0.27 | 45.23 ▲0.29 |
Dashboard /wp-admin | 2,230 ▲53 | 5.59 ▲0.05 | 89.46 ▼4.73 | 39.90 ▼1.36 |
Posts /wp-admin/edit.php | 2,135 ▲35 | 1.99 ▼0.01 | 34.47 ▼1.02 | 33.31 ▼8.38 |
Add New Post /wp-admin/post-new.php | 1,563 ▲28 | 18.42 ▲0.35 | 632.13 ▼35.16 | 70.63 ▼0.59 |
Media Library /wp-admin/upload.php | 1,438 ▲41 | 4.20 ▲0.04 | 98.60 ▼5.35 | 43.43 ▼0.57 |
Add New /wp-admin/post-new.php?post_type=pronamic_company | 2,740 | 7.62 | 182.78 | 76.34 |
Settings /wp-admin/edit.php?post_type=pronamic_company&page=pronamic_companies_settings | 1,135 | 3.51 | 72.76 | 37.18 |
Export /wp-admin/edit.php?post_type=pronamic_company&page=pronamic_companies_export | 991 | 3.53 | 70.61 | 31.55 |
Companies /wp-admin/edit.php?post_type=pronamic_company | 1,126 | 1.94 | 30.45 | 31.82 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
These items require your attention
- Zombie WordPress options detected upon uninstall: 8 options
- widget_theysaidso_widget
- theysaidso_admin_options
- pronamic_companies_version
- can_compress_scripts
- pronamic_companies_taxonomies
- widget_recent-posts
- db_upgraded
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
Smoke test failed, please fix the following
- > GET request to /wp-admin/edit.php?post_type=pronamic_company
- > Notice in wp-content/plugins/pronamic-companies/includes/class-admin.php+207
Undefined index: pronamic_company_category
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 items
- 8× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function plugin_dir_path() in wp-content/plugins/pronamic-companies/pronamic-companies.php:21
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/pronamic-companies/admin/export.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/pronamic-companies/admin/pronamic.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function esc_html_e() in wp-content/plugins/pronamic-companies/admin/plugins.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function wp_nonce_field() in wp-content/plugins/pronamic-companies/admin/meta-box.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/pronamic-companies/includes/gravityforms.php:40
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/pronamic-companies/examples/templates/single-pronamic_company.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function flush_rewrite_rules() in wp-content/plugins/pronamic-companies/admin/settings.php:7
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
There were no browser issues found
Optimizations
Plugin configuration 93% from 29 tests
readme.txt 94% from 16 tests
The readme.txt file is important because it is parsed by WordPress.org for the public listing of your plugin
Please fix the following attributes:
- Screenshots: Add images for these screenshots: #1 (Companies overview page), #2 (Edit company page), #3 (Company categories overview page), #4 (Companies settings page), #5 (Companies export page), #6 (Companies export Firefox save dialog), #7 (Companies export OpenOffice open dialog)
pronamic-companies/pronamic-companies.php 92% from 13 tests
The main PHP script in "Pronamic Companies" version 1.1.2 is automatically included on every request by WordPress
The following require your attention:
- Text Domain: The text domain name should consist of only dashes and lowercase characters
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | A short review of files and their extensions; it is not recommended to include executable files
Everything looks great! No dangerous files found in this plugin2,096 lines of code in 19 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 15 | 423 | 441 | 1,583 |
PO File | 1 | 495 | 925 | 396 |
SQL | 2 | 23 | 16 | 108 |
CSS | 1 | 2 | 0 | 9 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.22 |
Average class complexity | 18.67 |
▷ Minimum class complexity | 14.00 |
▷ Maximum class complexity | 22.00 |
Average method complexity | 2.61 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 10.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 3 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 3 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 33 | |
▷ Static methods | 0 | 0.00% |
▷ Public methods | 33 | 100.00% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 0 | 0.00% |
Functions | 53 | |
▷ Named functions | 53 | 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
Using a strong compression for your PNG files is a great way to speed-up your plugin
7 PNG files occupy 0.48MB with 0.26MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
screenshot-2.png | 147.49KB | 71.32KB | ▼ 51.64% |
screenshot-5.png | 56.97KB | 26.55KB | ▼ 53.40% |
screenshot-1.png | 64.60KB | 28.91KB | ▼ 55.25% |
screenshot-7.png | 55.84KB | 23.45KB | ▼ 58.01% |
screenshot-4.png | 78.67KB | 36.76KB | ▼ 53.27% |