Benchmarks
Plugin footprint 83% from 16 tests
Installer Passed 1 test
🔺 Critical test (weight: 50) | Checking the installer triggered no errors
This plugin's installer ran successfully
Server metrics [RAM: ▲1.73MB] [CPU: ▲2.37ms] Passed 4 tests
Server-side resources used by Linear
No issues were detected with server-side resource usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 5.24 ▲1.77 | 49.33 ▲9.80 |
Dashboard /wp-admin | 5.10 ▲1.75 | 66.01 ▲1.37 |
Posts /wp-admin/edit.php | 5.15 ▲1.79 | 68.98 ▲23.39 |
Add New Post /wp-admin/post-new.php | 7.59 ▲1.69 | 95.08 ▼9.68 |
Media Library /wp-admin/upload.php | 4.93 ▲1.70 | 48.61 ▲8.00 |
Instructions /wp-admin/admin.php?page=linear-instructions | 4.93 | 45.88 |
Debug /wp-admin/admin.php?page=linear-debug | 4.93 | 46.12 |
Feedback /wp-admin/admin.php?page=linear-feedback | 4.93 | 47.65 |
Advanced usage /wp-admin/admin.php?page=linear-advanced | 4.94 | 45.51 |
Settings /wp-admin/admin.php?page=linear-settings | 4.94 | 50.21 |
Server storage [IO: ▲3.94MB] [DB: ▲0.00MB] Passed 3 tests
How much does this plugin use your filesystem and database?
This plugin installed successfully
Filesystem: 235 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
widget_recent-posts |
db_upgraded |
can_compress_scripts |
widget_recent-comments |
Browser metrics Passed 4 tests
An overview of browser requirements for Linear
Normal browser usage
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 3,565 ▲818 | 24.81 ▲10.46 | 17.36 ▲15.74 | 35.98 ▼8.70 |
Dashboard /wp-admin | 2,692 ▲517 | 11.68 ▲6.10 | 184.06 ▲72.32 | 43.25 ▼2.65 |
Posts /wp-admin/edit.php | 2,593 ▲490 | 9.30 ▲7.29 | 77.47 ▲36.49 | 31.07 ▼7.87 |
Add New Post /wp-admin/post-new.php | 6,288 ▲4,749 | 31.03 ▲8.28 | 1,062.59 ▲421.16 | 41.11 ▼6.53 |
Media Library /wp-admin/upload.php | 1,805 ▲405 | 8.96 ▲4.93 | 111.91 ▼0.23 | 43.04 ▼7.09 |
Instructions /wp-admin/admin.php?page=linear-instructions | 1,419 | 8.86 | 82.28 | 32.62 |
Debug /wp-admin/admin.php?page=linear-debug | 1,296 | 8.85 | 73.72 | 26.40 |
Feedback /wp-admin/admin.php?page=linear-feedback | 1,293 | 7.95 | 74.05 | 26.89 |
Advanced usage /wp-admin/admin.php?page=linear-advanced | 2,675 | 10.05 | 125.57 | 43.99 |
Settings /wp-admin/admin.php?page=linear-settings | 1,989 | 8.34 | 115.05 | 39.84 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 75% from 4 tests
🔸 Tests weight: 35 | The uninstall procedure must remove all plugin files and extra database tables
The following items require your attention
- This plugin does not fully uninstall, leaving 6 options in the database
- db_upgraded
- widget_recent-posts
- widget_recent-comments
- theysaidso_admin_options
- can_compress_scripts
- widget_theysaidso_widget
Smoke tests 75% from 4 tests
Server-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for server-side errors
Good news, no errors were detected
SRP 50% 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
Please fix the following items
- 6× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/linear/blocks/listings/listings.php:18
- > PHP Fatal error
Uncaught Error: Call to undefined function get_header() in wp-content/plugins/linear/templates/linear-404.php:3
- > PHP Fatal error
Uncaught Error: Call to undefined function _x() in wp-content/plugins/linear/includes/constants_and_labels.php:8
- > PHP Fatal error
Uncaught Error: Class 'WP_Sitemaps_Provider' not found in wp-content/plugins/linear/includes/class-linear-sitemaps.php:6
- > PHP Fatal error
Uncaught Error: Call to undefined function Linear\\Templates\\get_header() in wp-content/plugins/linear/templates/plain-listings.php:5
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/linear/blocks/buy-commissions/buy-commissions.php:18
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is a shallow check for browser errors
No browser errors were detected
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
It's important to format your readme.txt file correctly as it is parsed for the public listing of your plugin
5 plugin tags: gutenberg, real estate, retail agency, apartments, blocks
linear/linear.php Passed 13 tests
"Linear" version 2.7.2's main PHP file describes plugin functionality and also serves as the entry point to any WordPress functionality
116 characters long description:
Linear listing system WordPress plugin. Enables you to easily display all your real estate listings on your website.
Code Analysis Passed 3 tests
File types Passed 1 test
🔸 Test weight: 35 | This is an overview of file extensions present in this plugin and a short test that no dangerous files are bundled with this plugin
There were no executable files found in this plugin15,699 lines of code in 200 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 83 | 1,963 | 1,412 | 7,672 |
JavaScript | 55 | 680 | 349 | 3,962 |
PO File | 1 | 847 | 1,021 | 2,382 |
Sass | 7 | 219 | 13 | 1,089 |
JSON | 8 | 0 | 0 | 548 |
SVG | 40 | 0 | 0 | 40 |
CSS | 6 | 1 | 8 | 6 |
PHP code Passed 2 tests
This is a very shot review of cyclomatic complexity and code structure
All good! No complexity issues found
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.60 |
Average class complexity | 60.80 |
▷ Minimum class complexity | 1.00 |
▷ Maximum class complexity | 186.00 |
Average method complexity | 4.96 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 74.00 |
Code structure | ||
---|---|---|
Namespaces | 2 | |
Interfaces | 0 | |
Traits | 0 | |
Classes | 15 | |
▷ Abstract classes | 0 | 0.00% |
▷ Concrete classes | 15 | 100.00% |
▷ Final classes | 0 | 0.00% |
Methods | 216 | |
▷ Static methods | 35 | 16.20% |
▷ Public methods | 141 | 65.28% |
▷ Protected methods | 1 | 0.46% |
▷ Private methods | 74 | 34.26% |
Functions | 116 | |
▷ Named functions | 70 | 60.34% |
▷ Anonymous functions | 46 | 39.66% |
Constants | 3 | |
▷ Global constants | 3 | 100.00% |
▷ Class constants | 0 | 0.00% |
▷ Public constants | 0 | 0.00% |
Plugin size Passed 2 tests
Image compression Passed 2 tests
Often times overlooked, PNG files can occupy unnecessary space in your plugin
4 compressed PNG files occupy 0.23MB
Potential savings
Compression of 4 random PNG files using pngquant | |||
---|---|---|---|
File | Size - original | Size - compressed | Savings |
dist/map_bg.png | 222.68KB | 224.83KB | 0.00% |
dist/bg-dixu.png | 6.62KB | 6.88KB | 0.00% |
dist/linear-logo-128x128.png | 1.55KB | 1.55KB | 0.19% |
dist/linear-logo-256x256.png | 2.78KB | 2.78KB | 0.04% |