10% soldpress

Code Review | SoldPress

WordPress plugin SoldPress scored10%from 54 tests.

About plugin

  • Plugin page: soldpress
  • Plugin version: 1.0.0
  • PHP version: 7.4.16
  • WordPress compatibility: 3.0.1-4.1.1
  • WordPress version: 6.3.1
  • First release: Apr 8, 2013
  • Latest release: Jan 18, 2015
  • Number of updates: 77
  • Update frequency: every 8.4 days
  • Top authors: Sanskript (100%)

Code review

54 tests

User reviews

7 reviews

Install metrics

100+ active /3,810 total downloads

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
PageMemory (MB)CPU Time (ms)
Home /2.03 ▼1.444.49 ▼40.22
Dashboard /wp-admin2.05 ▼1.265.40 ▼45.73
Posts /wp-admin/edit.php2.05 ▼1.315.54 ▼53.47
Add New Post /wp-admin/post-new.php2.05 ▼3.845.69 ▼100.25
Media Library /wp-admin/upload.php2.05 ▼1.185.65 ▼29.27
SoldPress /wp-admin/options-general.php?page=soldpress2.055.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
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,819 ▲5813.21 ▼1.474.84 ▲2.3742.96 ▼0.23
Dashboard /wp-admin2,228 ▲255.86 ▲0.0198.05 ▼4.9241.92 ▼3.03
Posts /wp-admin/edit.php2,104 ▲12.04 ▲0.0240.57 ▼3.1337.12 ▼3.01
Add New Post /wp-admin/post-new.php1,548 ▲2223.23 ▲5.57614.69 ▼28.3553.13 ▼2.78
Media Library /wp-admin/upload.php1,401 ▲74.20 ▼0.0698.74 ▼2.3942.43 ▼1.63
SoldPress /wp-admin/options-general.php?page=soldpress9042.0125.9126.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

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:
LanguageFilesBlank linesComment linesLines of code
PHP63871601,672
HTML1003

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 code0.45
Average class complexity105.67
▷ Minimum class complexity4.00
▷ Maximum class complexity292.00
Average method complexity6.32
▷ Minimum method complexity1.00
▷ Maximum method complexity49.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes3
▷ Abstract classes00.00%
▷ Concrete classes3100.00%
▷ Final classes00.00%
Methods59
▷ Static methods11.69%
▷ Public methods5084.75%
▷ Protected methods00.00%
▷ Private methods915.25%
Functions5
▷ Named functions5100.00%
▷ Anonymous functions00.00%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.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