Benchmarks
Plugin footprint 65% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
Installer ran successfully
Server metrics [RAM: ▲0.67MB] [CPU: ▲8.06ms] 75% from 4 tests
A check of server-side resources used by LawPress - Law Firm Website Management
The following require your attention
- CPU: The total CPU usage must kept under 500.00ms (currently 981.17ms on /wp-admin/plugins.php?page=tgmpa-install-plugins)
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 4.08 ▲0.62 | 47.22 ▲2.65 |
Dashboard /wp-admin | 3.99 ▲0.69 | 57.70 ▲6.41 |
Posts /wp-admin/edit.php | 4.03 ▲0.68 | 58.44 ▲10.52 |
Add New Post /wp-admin/post-new.php | 6.71 ▲0.82 | 109.67 ▲15.28 |
Media Library /wp-admin/upload.php | 3.91 ▲0.68 | 48.05 ▲12.66 |
Practice Areas /wp-admin/edit.php?post_type=lp_practice_area | 3.97 | 49.09 |
Add New /wp-admin/post-new.php?post_type=lp_practice_area | 4.02 | 59.95 |
Attorneys /wp-admin/edit.php?post_type=lp_attorney | 3.97 | 48.76 |
Add New /wp-admin/post-new.php?post_type=lp_case | 4.02 | 58.28 |
Cases /wp-admin/edit.php?post_type=lp_case | 3.97 | 46.24 |
Add New /wp-admin/post-new.php?post_type=lp_shortcode | 3.97 | 53.12 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 4.13 | 981.17 |
Add New /wp-admin/post-new.php?post_type=lp_attorney | 4.06 | 60.57 |
Law Shortcodes /wp-admin/edit.php?post_type=lp_shortcode | 4.00 | 49.67 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 4.27 | 45.35 |
Server storage [IO: ▲6.23MB] [DB: ▲0.03MB] Passed 3 tests
Filesystem and database footprint
This plugin was installed successfully
Filesystem: 219 new files
Database: no new tables, 12 new options
New WordPress options |
---|
lawpress_review_notice |
fs_active_plugins |
db_upgraded |
can_compress_scripts |
widget_recent-posts |
lawpress_its_review_time |
fs_gdpr |
fs_debug_mode |
theysaidso_admin_options |
widget_recent-comments |
... |
Browser metrics Passed 4 tests
This is an overview of browser requirements for LawPress - Law Firm Website Management
Minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,129 ▲394 | 13.58 ▼0.72 | 8.68 ▲6.68 | 27.58 ▼17.60 |
Dashboard /wp-admin | 2,404 ▲219 | 5.87 ▼0.03 | 101.05 ▼14.85 | 47.46 ▼1.42 |
Posts /wp-admin/edit.php | 2,298 ▲209 | 2.22 ▲0.23 | 42.17 ▲6.15 | 42.81 ▲8.02 |
Add New Post /wp-admin/post-new.php | 1,683 ▲169 | 18.51 ▲1.04 | 595.61 ▼93.58 | 57.22 ▲0.11 |
Media Library /wp-admin/upload.php | 1,594 ▲206 | 4.27 ▲0.01 | 101.27 ▼13.53 | 48.18 ▲0.00 |
Practice Areas /wp-admin/edit.php?post_type=lp_practice_area | 1,268 | 2.13 | 36.15 | 38.88 |
Add New /wp-admin/post-new.php?post_type=lp_practice_area | 2,347 | 7.57 | 240.27 | 75.57 |
Attorneys /wp-admin/edit.php?post_type=lp_attorney | 1,268 | 2.14 | 36.20 | 37.49 |
Add New /wp-admin/post-new.php?post_type=lp_case | 2,343 | 7.69 | 168.68 | 60.93 |
Cases /wp-admin/edit.php?post_type=lp_case | 1,271 | 2.13 | 37.07 | 38.89 |
Add New /wp-admin/post-new.php?post_type=lp_shortcode | 1,681 | 2.58 | 54.59 | 38.65 |
Install Plugins /wp-admin/plugins.php?page=tgmpa-install-plugins | 1,371 | 1.81 | 30.56 | 35.83 |
Add New /wp-admin/post-new.php?post_type=lp_attorney | 2,347 | 7.70 | 159.48 | 65.48 |
Law Shortcodes /wp-admin/edit.php?post_type=lp_shortcode | 1,267 | 2.16 | 37.49 | 36.32 |
Freemius Debug [v.2.4.3] /wp-admin/admin.php?page=freemius | 1,298 | 1.70 | 27.82 | 29.46 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.02MB] 50% from 4 tests
🔸 Tests weight: 35 | All plugins must uninstall correctly, removing their source code and extra database tables they might have created
It is recommended to fix the following
- Uninstall procedure had uncaught errors
- > Notice in wp-content/plugins/lawpress/freemius/includes/class-freemius.php+8575
Undefined property: stdClass::$plugins
- Zombie WordPress options detected upon uninstall: 12 options
- db_upgraded
- widget_recent-posts
- widget_theysaidso_widget
- widget_recent-comments
- fs_active_plugins
- fs_gdpr
- theysaidso_admin_options
- lawpress_review_notice
- fs_debug_mode
- can_compress_scripts
- ...
Smoke tests 50% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A smoke test targeting server-side errors
The smoke test was a success, however most plugin functionality was not tested
SRP 0% 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 take a closer look at the following
- 1× GET requests to PHP files return non-empty strings:
- > /wp-content/plugins/lawpress/admin/partials/lawpress-admin-display.php
- 1× GET requests to PHP files have triggered server-side errors or warnings:
- > PHP Fatal error
Uncaught Error: Call to undefined function did_action() in wp-content/plugins/lawpress/includes/class-tgm-plugin-activation.php:2109
- > 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 Passed 29 tests
readme.txt Passed 16 tests
The readme.txt file is an important file in your plugin as it is parsed by WordPress.org to prepare the public listing of your plugin
7 plugin tags: law, lawyer, law firm, attorney, solicitor...
lawpress/lawpress.php Passed 13 tests
The entry point to "LawPress - Law Firm Website Management" version 1.4.5 is a PHP file that has certain tags in its header comment area
75 characters long description:
LawPress is an all-in-one law data plugin that helps law firms manage site.
Code Analysis 97% from 3 tests
File types Passed 1 test
🔸 Test weight: 35 | There should be no dangerous file extensions present in any WordPress plugin
Everything looks great! No dangerous files found in this plugin49,410 lines of code in 157 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 122 | 8,104 | 18,607 | 34,692 |
SVG | 3 | 0 | 12 | 8,891 |
CSS | 20 | 126 | 75 | 2,289 |
JavaScript | 7 | 528 | 1,074 | 2,204 |
XML | 3 | 32 | 48 | 1,093 |
Markdown | 1 | 68 | 0 | 214 |
JSON | 1 | 0 | 0 | 27 |
PHP code 50% from 2 tests
A brief analysis of cyclomatic complexity and code structure for this plugin
Please fix the following
- Cyclomatic complexity of classes should be reduced to less than 1000 (currently 2,910)
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.61 |
Average class complexity | 77.64 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 2,910.00 |
Average method complexity | 4.60 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 86.00 |
Code structure | ||
---|---|---|
Namespaces | 0 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 59 | |
▷ Abstract classes | 2 | 3.39% |
▷ Concrete classes | 57 | 96.61% |
▷ Final classes | 0 | 0.00% |
Methods | 1,288 | |
▷ Static methods | 183 | 14.21% |
▷ Public methods | 920 | 71.43% |
▷ Protected methods | 38 | 2.95% |
▷ Private methods | 330 | 25.62% |
Functions | 100 | |
▷ Named functions | 100 | 100.00% |
▷ Anonymous functions | 0 | 0.00% |
Constants | 127 | |
▷ Global constants | 99 | 77.95% |
▷ Class constants | 28 | 22.05% |
▷ Public constants | 28 | 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
7 PNG files occupy 0.09MB with 0.04MB in potential savings
Potential savings
Compression of 5 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
freemius/assets/img/testimonials.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/theme-icon.png | 10.97KB | 5.78KB | ▼ 47.37% |
freemius/assets/img/locations.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/carousel.png | 9.16KB | 5.26KB | ▼ 42.58% |
freemius/assets/img/advanced-settings.png | 9.16KB | 5.26KB | ▼ 42.58% |