10% exposify

Code Review | Exposify

WordPress plugin Exposify scored10%from 54 tests.

About plugin

  • Plugin page: exposify
  • Plugin version: 1.11.1
  • PHP version: 7.4.16
  • WordPress compatibility: 4.5.0-4.9.6
  • WordPress version: 6.3.1
  • First release: Oct 25, 2016
  • Latest release: Jul 17, 2018
  • Number of updates: 37
  • Update frequency: every 17.0 days
  • Top authors: richartkeil (100%)

Code review

54 tests

User reviews

1 review

Install metrics

10+ active /936 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
These installer errors require your attention
  • Install procedure validation failed for this plugin
    • > Notice in wp-content/plugins/exposify/exposify.php+67
    Trying to access array offset on value of type bool

Server metrics [RAM: ▼1.38MB] [CPU: ▼47.34ms] Passed 4 tests

An overview of server-side resources used by Exposify
This plugin does not affect your website's performance
PageMemory (MB)CPU Time (ms)
Home /2.12 ▼1.345.42 ▼31.63
Dashboard /wp-admin2.80 ▼0.5515.30 ▼49.57
Posts /wp-admin/edit.php2.80 ▼0.5617.00 ▼29.10
Add New Post /wp-admin/post-new.php2.80 ▼3.0916.63 ▼79.04
Media Library /wp-admin/upload.php2.80 ▼0.4314.37 ▼21.17
Exposify /wp-admin/options-general.php?page=exposify2.8014.98

Server storage [IO: ▲0.03MB] [DB: ▲0.00MB] Passed 3 tests

Analyzing filesystem and database footprints of this plugin
The plugin installed successfully
Filesystem: 15 new files
Database: no new tables, 8 new options
New WordPress options
exposify_property_page_id
can_compress_scripts
widget_recent-posts
theysaidso_admin_options
widget_recent-comments
exposify_overview_page_id
db_upgraded
widget_theysaidso_widget

Browser metrics Passed 4 tests

Exposify: an overview of browser usage
This plugin renders optimally with no browser resource issues detected
PageNodesMemory (MB)Script (ms)Layout (ms)
Home /2,799 ▲5314.18 ▼0.171.99 ▲0.5038.52 ▼2.92
Dashboard /wp-admin2,199 ▲185.62 ▼0.0989.42 ▼11.1741.88 ▲1.53
Posts /wp-admin/edit.php2,104 ▲41.96 ▼0.0440.66 ▲4.1236.72 ▲5.96
Add New Post /wp-admin/post-new.php1,529 ▲323.59 ▲0.37648.21 ▲2.1551.65 ▼7.84
Media Library /wp-admin/upload.php1,404 ▲44.16 ▼0.0799.16 ▲2.3441.46 ▼7.39
Exposify /wp-admin/options-general.php?page=exposify8572.0325.2836.10

Uninstaller [IO: ▲0.00MB] [DB: ▲0.00MB] 50% from 4 tests

🔸 Tests weight: 35 | Verifying that this plugin uninstalls completely without leaving any traces
These items require your attention
  • Uninstall procedure had uncaught errors
    • > Notice in wp-content/plugins/exposify/exposify.php+48
    Trying to access array offset on value of type bool
  • This plugin does not fully uninstall, leaving 8 options in the database
    • theysaidso_admin_options
    • db_upgraded
    • exposify_property_page_id
    • widget_recent-posts
    • exposify_overview_page_id
    • widget_recent-comments
    • widget_theysaidso_widget
    • can_compress_scripts

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)
Almost there, just fix the following server-side errors
  • 6 occurences, only the last one shown
    • > GET request to /wp-admin/options-general.php?page=exposify
    • > Notice in wp-content/plugins/exposify/Settings/ExposifyThemeTemplateField.php+36
    Trying to access array offset on value of type bool

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
Almost there! Just fix the following items
  • 10× GET requests to PHP files have triggered server-side errors or warnings:
    • > PHP Fatal error
      Uncaught Error: Class 'ExposifyField' not found in wp-content/plugins/exposify/Settings/ExposifyCustomTypesField.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ExposifyField' not found in wp-content/plugins/exposify/Settings/ExposifySiteSlugField.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ExposifySection' not found in wp-content/plugins/exposify/Settings/ExposifyGeneralSection.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function register_activation_hook() in wp-content/plugins/exposify/exposify.php:115
    • > PHP Fatal error
      Uncaught Error: Class 'ExposifyField' not found in wp-content/plugins/exposify/Settings/ExposifyApiKeyField.php:3
    • > PHP Fatal error
      Uncaught Error: Call to undefined function get_option() in wp-content/plugins/exposify/public.php:325
    • > PHP Fatal error
      Uncaught Error: Call to undefined function add_action() in wp-content/plugins/exposify/admin.php:176
    • > PHP Fatal error
      Uncaught Error: Class 'ExposifyField' not found in wp-content/plugins/exposify/Settings/ExposifySiteTitleField.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ExposifyField' not found in wp-content/plugins/exposify/Settings/ExposifyThemeTemplateField.php:3
    • > PHP Fatal error
      Uncaught Error: Class 'ExposifySection' not found in wp-content/plugins/exposify/Settings/ExposifyVisualSection.php:3

User-side errors Passed 1 test

🔹 Test weight: 20 | Just a short smoke test targeting errors on the browser (console and network errors and warnings)
Everything seems fine, but this is not an exhaustive test

Optimizations

Plugin configuration Passed 29 tests

readme.txt Passed 16 tests

You should put a lot of thought into formatting readme.txt as it is used by WordPress.org to prepare the public listing of your plugin
4 plugin tags: exposify, property, real estate, api

exposify/exposify.php Passed 13 tests

The main PHP script in "Exposify" version 1.11.1 is automatically included on every request by WordPress
51 characters long description:
Zeigt alle eigenen Immobilienangebote von Exposify.

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
Good job! No executable or dangerous file extensions detected663 lines of code in 14 files:
LanguageFilesBlank linesComment linesLines of code
PHP14129484663

PHP code Passed 2 tests

Analyzing logical lines of code, cyclomatic complexity, and other code metrics
There were no cyclomatic complexity issued detected
Cyclomatic complexity
Average complexity per logical line of code0.29
Average class complexity4.43
▷ Minimum class complexity1.00
▷ Maximum class complexity28.00
Average method complexity1.92
▷ Minimum method complexity1.00
▷ Maximum method complexity13.00
Code structure
Namespaces0
Interfaces0
Traits0
Classes14
▷ Abstract classes321.43%
▷ Concrete classes1178.57%
▷ Final classes00.00%
Methods57
▷ Static methods00.00%
▷ Public methods5392.98%
▷ Protected methods47.02%
▷ Private methods00.00%
Functions18
▷ Named functions1794.44%
▷ Anonymous functions15.56%
Constants0
▷ Global constants00.00%
▷ Class constants00.00%
▷ Public constants00.00%

Plugin size Passed 2 tests

Image compression Passed 2 tests

Using a strong compression for your PNG files is a great way to speed-up your plugin
There are no PNG files in this plugin