Benchmarks
Plugin footprint 40% from 16 tests
Installer 0% from 1 test
🔺 Critical test (weight: 50) | Verifying that this plugin installs correctly without errors
The following installer errors require your attention
- The plugin cannot be installed
- > Warning in wp-content/plugins/soldpress/soldpress.php+26
Use of undefined constant soldpress_deactivate - assumed 'soldpress_deactivate' (this will throw an Error in a future version of PHP)
Server metrics [RAM: ▼1.96MB] [CPU: ▼59.92ms] Passed 4 tests
Server-side resources used by SoldPress
Normal server usage
Page | Memory (MB) | CPU Time (ms) |
---|---|---|
Home / | 2.03 ▼1.44 | 4.49 ▼40.22 |
Dashboard /wp-admin | 2.05 ▼1.26 | 5.40 ▼45.73 |
Posts /wp-admin/edit.php | 2.05 ▼1.31 | 5.54 ▼53.47 |
Add New Post /wp-admin/post-new.php | 2.05 ▼3.84 | 5.69 ▼100.25 |
Media Library /wp-admin/upload.php | 2.05 ▼1.18 | 5.65 ▼29.27 |
SoldPress /wp-admin/options-general.php?page=soldpress | 2.05 | 5.52 |
Server storage [IO: ▲0.08MB] [DB: ▲0.00MB] Passed 3 tests
A short overview of filesystem and database impact
No storage issues were detected
Filesystem: 9 new files
Database: no new tables, 6 new options
New WordPress options |
---|
widget_theysaidso_widget |
theysaidso_admin_options |
can_compress_scripts |
db_upgraded |
widget_recent-comments |
widget_recent-posts |
Browser metrics Passed 4 tests
Checking browser requirements for SoldPress
This plugin has a minimal impact on browser resources
Page | Nodes | Memory (MB) | Script (ms) | Layout (ms) |
---|---|---|---|---|
Home / | 2,819 ▲58 | 13.21 ▼1.47 | 4.84 ▲2.37 | 42.96 ▼0.23 |
Dashboard /wp-admin | 2,228 ▲25 | 5.86 ▲0.01 | 98.05 ▼4.92 | 41.92 ▼3.03 |
Posts /wp-admin/edit.php | 2,104 ▲1 | 2.04 ▲0.02 | 40.57 ▼3.13 | 37.12 ▼3.01 |
Add New Post /wp-admin/post-new.php | 1,548 ▲22 | 23.23 ▲5.57 | 614.69 ▼28.35 | 53.13 ▼2.78 |
Media Library /wp-admin/upload.php | 1,401 ▲7 | 4.20 ▼0.06 | 98.74 ▼2.39 | 42.43 ▼1.63 |
SoldPress /wp-admin/options-general.php?page=soldpress | 904 | 2.01 | 25.91 | 26.30 |
Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests
🔸 Tests weight: 35 | Checking the uninstaller removed all traces of the plugin
Please fix the following items
- This plugin did not uninstall without warnings or errors
- > Warning in wp-content/plugins/soldpress/soldpress.php+26
Use of undefined constant soldpress_deactivate - assumed 'soldpress_deactivate' (this will throw an Error in a future version of PHP)
- Zombie WordPress options detected upon uninstall: 6 options
- widget_theysaidso_widget
- widget_recent-posts
- db_upgraded
- theysaidso_admin_options
- can_compress_scripts
- widget_recent-comments
Smoke tests 50% from 4 tests
Server-side errors 0% from 1 test
🔹 Test weight: 20 | Just a short smoke test targeting errors on the server (in the Apache logs)
Please fix the following server-side errors
- > GET request to /wp-admin/options-general.php?page=soldpress
- > Warning in wp-content/plugins/soldpress/soldpress.php+26
Use of undefined constant soldpress_deactivate - assumed 'soldpress_deactivate' (this will throw an Error in a future version of PHP)
SRP 50% from 2 tests
🔹 Tests weight: 20 | The single-responsibility principle: PHP files have to remain inert when accessed directly, throwing no errors and performing no actions
Please take a closer look at the following
- 4× PHP files trigger server-side errors or warnings when accessed directly:
- > PHP Fatal error
Uncaught Error: Call to undefined function add_shortcode() in wp-content/plugins/soldpress/shortcodes.php:33
- > PHP Parse error
syntax error, unexpected '>', expecting end of file in wp-content/plugins/soldpress/index.php on line 3
- > PHP Fatal error
Uncaught Error: Call to undefined function add_filter() in wp-content/plugins/soldpress/soldpress.php:12
- > PHP Fatal error
Uncaught Error: Call to undefined function add_action() in wp-content/plugins/soldpress/settings.php:3
- > PHP Fatal error
User-side errors Passed 1 test
🔹 Test weight: 20 | This is just a short smoke test looking for browser issues
There were no browser issues found
Optimizations
Plugin configuration Passed 29 tests
readme.txt Passed 16 tests
Perhaps the most important file in your plugin readme.txt gets parsed in order to generate the public listing of your plugin
8 plugin tags: ddf, mls, realtor, data distribution facility, real estate...
soldpress/soldpress.php Passed 13 tests
The primary PHP file in "SoldPress" version 1.0.0 is used by WordPress to initiate all plugin functionality
122 characters long description:
SoldPress is a WordPress plugin to enable CREA’s members to easily disseminate MLS® listing content on WordPress Sites.
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
Success! There were no dangerous files found in this plugin1,675 lines of code in 7 files:
Language | Files | Blank lines | Comment lines | Lines of code |
---|---|---|---|---|
PHP | 6 | 387 | 160 | 1,672 |
HTML | 1 | 0 | 0 | 3 |
PHP code Passed 2 tests
A short review of cyclomatic complexity and code structure
No cyclomatic complexity issues were detected for this plugin
Cyclomatic complexity | |
---|---|
Average complexity per logical line of code | 0.45 |
Average class complexity | 105.67 |
▷ Minimum class complexity | 4.00 |
▷ Maximum class complexity | 292.00 |
Average method complexity | 6.32 |
▷ Minimum method complexity | 1.00 |
▷ Maximum method complexity | 49.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 | 59 | |
▷ Static methods | 1 | 1.69% |
▷ Public methods | 50 | 84.75% |
▷ Protected methods | 0 | 0.00% |
▷ Private methods | 9 | 15.25% |
Functions | 5 | |
▷ Named functions | 5 | 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
Often times overlooked, PNG files can occupy unnecessary space in your plugin
No PNG files were detected