Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
Installer ran successfully
Server metrics [RAM: ▲0.19MB] [CPU: ▲1.34ms] Passed 4 tests
An overview of server-side resources used by WP Lawyer
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 3.66 ▲0.20 | 42.52 ▼1.07 |
Dashboard /wp-admin | 3.49 ▲0.18 | 51.69 ▲4.93 |
Posts /wp-admin/edit.php | 3.54 ▲0.18 | 55.03 ▲8.25 |
Add New Post /wp-admin/post-new.php | 6.08 ▲0.19 | 89.75 ▼6.77 |
Media Library /wp-admin/upload.php | 3.41 ▲0.18 | 44.77 ▲12.74 |
States of Practice /wp-admin/edit-tags.php?taxonomy=wplawyer-attorney-state&post_type=wplawyer-attorney | 3.40 | 36.42 |
Associations /wp-admin/edit-tags.php?taxonomy=wplawyer-attorney-associations&post_type=wplawyer-attorney | 3.40 | 37.25 |
Undergraduate Schools /wp-admin/edit-tags.php?taxonomy=wplawyer-attorney-undergrad&post_type=wplawyer-attorney | 3.40 | 37.45 |
Law Schools /wp-admin/edit-tags.php?taxonomy=wplawyer-attorney-lawschool&post_type=wplawyer-attorney | 3.40 | 37.03 |
All Attorneys /wp-admin/edit.php?post_type=wplawyer-attorney | 3.46 | 38.59 |
Areas of Practice /wp-admin/edit-tags.php?taxonomy=wplawyer-practice-area&post_type=wplawyer-attorney | 3.40 | 37.03 |
Court Houses /wp-admin/edit-tags.php?taxonomy=wplawyer-cases-courthouse&post_type=wplawyer-cases | 3.40 | 36.48 |
Cities of Practice /wp-admin/edit-tags.php?taxonomy=wplawyer-attorney-city&post_type=wplawyer-attorney | 3.40 | 36.50 |
Languages /wp-admin/edit-tags.php?taxonomy=wplawyer-attorney-languages&post_type=wplawyer-attorney | 3.40 | 38.01 |
Add Case /wp-admin/post-new.php?post_type=wplawyer-cases | 3.54 | 57.93 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
The plugin installed successfully
Filesystem: 14 new files
Database: no new tables, 7 new options
New WordPress options |
---|
db_upgraded |
can_compress_scripts |
widget_recent-posts |
widget_recent-comments |
widget_theysaidso_widget |
wplawyer-case-resolution_children |
theysaidso_admin_options |
Browser metrics Passed 4 tests
WP Lawyer: an overview of browser usage
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,908 ▲162 | 13.35 ▼1.05 | 4.21 ▲2.28 | 39.77 ▼8.18 |
Dashboard /wp-admin | 2,309 ▲121 | 5.85 ▲0.97 | 101.07 ▼2.31 | 73.64 ▲34.59 |
Posts /wp-admin/edit.php | 2,189 ▲100 | 2.02 ▲0.01 | 40.42 ▲4.08 | 40.62 ▲3.79 |
Add New Post /wp-admin/post-new.php | 1,750 ▲216 | 22.41 ▼0.73 | 610.38 ▼72.29 | 56.82 ▼0.58 |
Media Library /wp-admin/upload.php | 1,485 ▲100 | 4.17 ▼0.08 | 98.78 ▼1.63 | 64.68 ▲22.54 |
States of Practice /wp-admin/edit-tags.php?taxonomy=wplawyer-attorney-state&post_type=wplawyer-attorney | 1,337 | 2.15 | 29.20 | 32.13 |
Associations /wp-admin/edit-tags.php?taxonomy=wplawyer-attorney-associations&post_type=wplawyer-attorney | 1,337 | 2.15 | 26.30 | 30.87 |
Undergraduate Schools /wp-admin/edit-tags.php?taxonomy=wplawyer-attorney-undergrad&post_type=wplawyer-attorney | 1,334 | 2.15 | 28.02 | 31.42 |
Law Schools /wp-admin/edit-tags.php?taxonomy=wplawyer-attorney-lawschool&post_type=wplawyer-attorney | 1,337 | 2.15 | 25.65 | 30.40 |
All Attorneys /wp-admin/edit.php?post_type=wplawyer-attorney | 1,231 | 2.01 | 30.12 | 27.65 |
Areas of Practice /wp-admin/edit-tags.php?taxonomy=wplawyer-practice-area&post_type=wplawyer-attorney | 1,365 | 2.13 | 27.12 | 29.78 |
Court Houses /wp-admin/edit-tags.php?taxonomy=wplawyer-cases-courthouse&post_type=wplawyer-cases | 1,334 | 2.15 | 24.79 | 30.42 |
Cities of Practice /wp-admin/edit-tags.php?taxonomy=wplawyer-attorney-city&post_type=wplawyer-attorney | 1,334 | 2.15 | 24.68 | 29.64 |
Languages /wp-admin/edit-tags.php?taxonomy=wplawyer-attorney-languages&post_type=wplawyer-attorney | 1,337 | 2.15 | 29.23 | 28.56 |
Add Case /wp-admin/post-new.php?post_type=wplawyer-cases | 2,765 | 7.83 | 174.98 | 122.22 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.01MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
You still need to fix the following
- This plugin did not uninstall successfully, leaving 7 options in the database
- theysaidso_admin_options
- widget_theysaidso_widget
- wplawyer-case-resolution_children
- widget_recent-comments
- db_upgraded
- widget_recent-posts
- can_compress_scripts
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | A shallow check that no server-side errors were triggered
Even though everything seems fine, this is not an exhaustive test
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 take a closer look at the following
- 7× PHP files trigger errors when accessed directly with GET requests:
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-lawyer/templates/archive-wplawyer-cases.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-lawyer/templates/single-wplawyer-attorney.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_image_size() in wp-content/plugins/wp-lawyer/modules/attorneys.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-lawyer/templates/single-wplawyer-cases.php:15
- > PHP Fatal error
Uncaught Error: Call to undefined function add_image_size() in wp-content/plugins/wp-lawyer/modules/attorneys.php:7
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/wp-lawyer/templates/archive-wplawyer-attorney.php:1
- > PHP Fatal error
Uncaught Error: Call to undefined function add_image_size() in wp-content/plugins/wp-lawyer/modules/cases.php:7
- > PHP Fatal error
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 96% from 29 tests
readme.txt Passed 16 tests
The readme.txt file describes your plugin functionality and requirements and it is parsed to prepare the your plugin's listing
3 plugin tags: attorneys, lawyers, law firm
wp-lawyer/wp-lawyer.php 92% from 13 tests
This is the main PHP file of "WP Lawyer" version 1.0.3, providing information about the plugin in the header fields and serving as the principal entry point to the plugin's functions
The following require your attention:
- Domain Path: The domain path points to an invalid folder, "/languages/" does not exist
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is a short overview of programming languages used in this plugin, detecting executable files
Everything looks great! No dangerous files found in this plugin1,112 lines of code in 10 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 8 | 319 | 180 | 1,058 |
CSS | 1 | 11 | 0 | 51 |
Markdown | 1 | 1 | 0 | 3 |
PHP code Passed 2 tests
This is a short overview of cyclomatic complexity and code structure for this plugin
This plugin has no cyclomatic complexity issues
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.34 |
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 | 54 | |
▷ Named functions | 54 | 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
All PNG images should be compressed to minimize bandwidth usage for end users
3 PNG files occupy 0.01MB with 0.01MB in potential savings
Potential savings
Compression of 3 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
assets/images/cases-icon.png | 4.44KB | 0.61KB | ▼ 86.31% |
assets/images/social-icons.png | 6.10KB | 3.04KB | ▼ 50.11% |
assets/images/attorney-icon.png | 4.65KB | 0.81KB | ▼ 82.60% |